Commit ff98b3f6 authored by Richard Oudkerk's avatar Richard Oudkerk

Issue #16616: Enable test in test_poll which was (accidentally?) disabled

parent 109b1743
...@@ -67,13 +67,11 @@ class PollTests(unittest.TestCase): ...@@ -67,13 +67,11 @@ class PollTests(unittest.TestCase):
self.assertEqual(bufs, [MSG] * NUM_PIPES) self.assertEqual(bufs, [MSG] * NUM_PIPES)
def poll_unit_tests(self): def test_poll_unit_tests(self):
# returns NVAL for invalid file descriptor # returns NVAL for invalid file descriptor
FD = 42 FD, w = os.pipe()
try: os.close(FD)
os.close(FD) os.close(w)
except OSError:
pass
p = select.poll() p = select.poll()
p.register(FD) p.register(FD)
r = p.poll() r = p.poll()
......
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