summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2012-12-09 16:05:20 (GMT)
committerRichard Oudkerk <shibturn@gmail.com>2012-12-09 16:05:20 (GMT)
commit53dff0c059f21945d1fb2bf2b33621205137a455 (patch)
tree7f5b80b617543b6776f199539d963870bad13e02 /Lib
parent5c0665ee61e87db012aad32994433a9748093d1f (diff)
downloadcpython-53dff0c059f21945d1fb2bf2b33621205137a455.zip
cpython-53dff0c059f21945d1fb2bf2b33621205137a455.tar.gz
cpython-53dff0c059f21945d1fb2bf2b33621205137a455.tar.bz2
Issue #16616: Enable test in test_poll which was (accidentally?) disabled
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_poll.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/test/test_poll.py b/Lib/test/test_poll.py
index 720cff3..d0e4f32 100644
--- a/Lib/test/test_poll.py
+++ b/Lib/test/test_poll.py
@@ -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()