Commit 1d7ec8f2 authored by Charles-François Natali's avatar Charles-François Natali

Issue #18325: Fix a test_kqueue failure on OpenBSD: kevent's data and event

members are integers.
parents b467d154 6ddd2653
...@@ -75,13 +75,13 @@ class TestKQueue(unittest.TestCase): ...@@ -75,13 +75,13 @@ class TestKQueue(unittest.TestCase):
self.assertEqual(ev, ev) self.assertEqual(ev, ev)
self.assertNotEqual(ev, other) self.assertNotEqual(ev, other)
bignum = sys.maxsize * 2 + 1 bignum = 0x7fff
ev = select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum) ev = select.kevent(bignum, 1, 2, 3, bignum - 1, bignum)
self.assertEqual(ev.ident, bignum) self.assertEqual(ev.ident, bignum)
self.assertEqual(ev.filter, 1) self.assertEqual(ev.filter, 1)
self.assertEqual(ev.flags, 2) self.assertEqual(ev.flags, 2)
self.assertEqual(ev.fflags, 3) self.assertEqual(ev.fflags, 3)
self.assertEqual(ev.data, sys.maxsize) self.assertEqual(ev.data, bignum - 1)
self.assertEqual(ev.udata, bignum) self.assertEqual(ev.udata, bignum)
self.assertEqual(ev, ev) self.assertEqual(ev, ev)
self.assertNotEqual(ev, other) self.assertNotEqual(ev, other)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment