Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r73192:205a8e437a9a
Date: 2014-08-29 13:00 -0700
http://bitbucket.org/pypy/pypy/changeset/205a8e437a9a/
Log: we now match 2.7.8/3.3.5 behavior, test against that
diff --git a/lib-python/3/test/test_poll.py b/lib-python/3/test/test_poll.py
--- a/lib-python/3/test/test_poll.py
+++ b/lib-python/3/test/test_poll.py
@@ -151,14 +151,11 @@
if x != 5:
self.fail('Overflow must have occurred')
- pollster = select.poll()
- # Issue 15989
- self.assertRaises(OverflowError, pollster.register, 0,
- _testcapi.SHRT_MAX + 1)
- self.assertRaises(OverflowError, pollster.register, 0,
- _testcapi.USHRT_MAX + 1)
- self.assertRaises(OverflowError, pollster.poll, _testcapi.INT_MAX + 1)
- self.assertRaises(OverflowError, pollster.poll, _testcapi.UINT_MAX + 1)
+ # Issues #15989, #17919
+ self.assertRaises(OverflowError, pollster.register, 0, -1)
+ self.assertRaises(OverflowError, pollster.register, 0, 1 << 64)
+ self.assertRaises(OverflowError, pollster.modify, 1, -1)
+ self.assertRaises(OverflowError, pollster.modify, 1, 1 << 64)
def test_main():
run_unittest(PollTests)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit