]> granicus.if.org Git - python/commitdiff
test_select: use a timeout=0 in test_errno()
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 16 Oct 2011 18:48:52 +0000 (20:48 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 16 Oct 2011 18:48:52 +0000 (20:48 +0200)
Lib/test/test_select.py

index c503440bd0771d30c7a0f1afa9ae551049367ea4..ec77a4970087d833846fb69453155f5df9709462 100644 (file)
@@ -28,7 +28,7 @@ class SelectTestCase(unittest.TestCase):
             fd = fp.fileno()
             fp.close()
             try:
-                select.select([fd], [], [])
+                select.select([fd], [], [], 0)
             except select.error as err:
                 self.assertEqual(err.errno, errno.EBADF)
             else: