[Python-checkins] cpython: Issue #16616: Enable test in test_poll which was (accidentally?) disabled
richard.oudkerk
python-checkins at python.org
Sun Dec 9 17:10:20 CET 2012
http://hg.python.org/cpython/rev/5a022c21ad84
changeset: 80786:5a022c21ad84
user: Richard Oudkerk <shibturn at gmail.com>
date: Sun Dec 09 16:05:20 2012 +0000
summary:
Issue #16616: Enable test in test_poll which was (accidentally?) disabled
files:
Lib/test/test_poll.py | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/Lib/test/test_poll.py b/Lib/test/test_poll.py
--- a/Lib/test/test_poll.py
+++ b/Lib/test/test_poll.py
@@ -67,13 +67,11 @@
self.assertEqual(bufs, [MSG] * NUM_PIPES)
- def poll_unit_tests(self):
+ def test_poll_unit_tests(self):
# returns NVAL for invalid file descriptor
- FD = 42
- try:
- os.close(FD)
- except OSError:
- pass
+ FD, w = os.pipe()
+ os.close(FD)
+ os.close(w)
p = select.poll()
p.register(FD)
r = p.poll()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list