Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b738e9

Browse files
committed
Test exceptional condition in select()
1 parent 6fc36c5 commit 1b738e9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/test/test_select.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ def fileno(self):
3232
else:
3333
print 'expected TypeError exception not raised'
3434

35+
try:
36+
rfd, wfd, xfd = select.select([], [], [], 'not a number')
37+
except TypeError:
38+
pass
39+
else:
40+
print 'expected TypeError exception not raised'
41+
3542

3643
def test():
3744
import sys

0 commit comments

Comments
 (0)