summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorCharles-François Natali <cf.natali@gmail.com>2013-08-02 08:22:07 (GMT)
committerCharles-François Natali <cf.natali@gmail.com>2013-08-02 08:22:07 (GMT)
commit1d7ec8f26cf7b08f8b163bea8e0236ad0228126e (patch)
tree78416b1667bf5d65744fda283098b985de01d142 /Lib
parentb467d1542a5d0e852a8a12e48e88c15f0c03bd98 (diff)
parent6ddd2653ab28516abe04fd953a26c69429eb70b2 (diff)
downloadcpython-1d7ec8f26cf7b08f8b163bea8e0236ad0228126e.zip
cpython-1d7ec8f26cf7b08f8b163bea8e0236ad0228126e.tar.gz
cpython-1d7ec8f26cf7b08f8b163bea8e0236ad0228126e.tar.bz2
Issue #18325: Fix a test_kqueue failure on OpenBSD: kevent's data and event
members are integers.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_kqueue.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_kqueue.py b/Lib/test/test_kqueue.py
index 902c99c..5b33af2 100644
--- a/Lib/test/test_kqueue.py
+++ b/Lib/test/test_kqueue.py
@@ -75,13 +75,13 @@ class TestKQueue(unittest.TestCase):
self.assertEqual(ev, ev)
self.assertNotEqual(ev, other)
- bignum = sys.maxsize * 2 + 1
- ev = select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum)
+ bignum = 0x7fff
+ ev = select.kevent(bignum, 1, 2, 3, bignum - 1, bignum)
self.assertEqual(ev.ident, bignum)
self.assertEqual(ev.filter, 1)
self.assertEqual(ev.flags, 2)
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, ev)
self.assertNotEqual(ev, other)