summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_kqueue.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-04 21:10:38 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-04 21:10:38 (GMT)
commitd83f1e6d6176247efc57cdbf59215743454a3ff5 (patch)
tree153b4a11b9297aa2f84543b8065ffa499aee0642 /Lib/test/test_kqueue.py
parent97c81ef5b06d63da89f31625b66ee7130c324314 (diff)
downloadcpython-d83f1e6d6176247efc57cdbf59215743454a3ff5.zip
cpython-d83f1e6d6176247efc57cdbf59215743454a3ff5.tar.gz
cpython-d83f1e6d6176247efc57cdbf59215743454a3ff5.tar.bz2
Merged revisions 76108 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76108 | antoine.pitrou | 2009-11-04 20:25:14 +0100 (mer., 04 nov. 2009) | 6 lines Issue #7211: Allow 64-bit values for the `ident` and `data` fields of kevent objects on 64-bit systems. Patch by Michael Broghton. I will revert this checkin if it causes problems on our BSD buildbots. ........
Diffstat (limited to 'Lib/test/test_kqueue.py')
-rw-r--r--Lib/test/test_kqueue.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_kqueue.py b/Lib/test/test_kqueue.py
index 5ba21a2..3d0428e 100644
--- a/Lib/test/test_kqueue.py
+++ b/Lib/test/test_kqueue.py
@@ -71,6 +71,17 @@ 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)
+ 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.udata, bignum)
+ self.assertEqual(ev, ev)
+ self.assertNotEqual(ev, other)
+
def test_queue_event(self):
serverSocket = socket.socket()
serverSocket.bind(('127.0.0.1', 0))