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

This commit is contained in:
Richard Oudkerk 2012-12-09 16:05:20 +00:00
parent 5c0665ee61
commit 53dff0c059
1 changed files with 4 additions and 6 deletions

View File

@ -67,13 +67,11 @@ class PollTests(unittest.TestCase):
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()