mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Test exceptional condition in select()
This commit is contained in:
parent
6fc36c5491
commit
1b738e916f
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,13 @@ except TypeError:
|
|||
else:
|
||||
print 'expected TypeError exception not raised'
|
||||
|
||||
try:
|
||||
rfd, wfd, xfd = select.select([], [], [], 'not a number')
|
||||
except TypeError:
|
||||
pass
|
||||
else:
|
||||
print 'expected TypeError exception not raised'
|
||||
|
||||
|
||||
def test():
|
||||
import sys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue