mirror of
https://github.com/python/cpython.git
synced 2026-04-04 19:13:16 +00:00
test_select: use a timeout=0 in test_errno()
This commit is contained in:
parent
5a3ff79fd6
commit
386c2d8b4e
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ def test_errno(self):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue