mirror of https://github.com/python/cpython
test_select: use a timeout=0 in test_errno()
This commit is contained in:
parent
5a3ff79fd6
commit
386c2d8b4e
|
@ -28,7 +28,7 @@ class SelectTestCase(unittest.TestCase):
|
||||||
fd = fp.fileno()
|
fd = fp.fileno()
|
||||||
fp.close()
|
fp.close()
|
||||||
try:
|
try:
|
||||||
select.select([fd], [], [])
|
select.select([fd], [], [], 0)
|
||||||
except select.error as err:
|
except select.error as err:
|
||||||
self.assertEqual(err.errno, errno.EBADF)
|
self.assertEqual(err.errno, errno.EBADF)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue