summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_select.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-06-13 22:23:47 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-06-13 22:23:47 (GMT)
commit1b738e916f649079cfd85b61ee84b4cbf7841063 (patch)
tree22c4b5fbf4bb46976f4fe4aeb8c5da6b4208f591 /Lib/test/test_select.py
parent6fc36c549183860ba4b1b83cd34a47a51881f8db (diff)
downloadcpython-1b738e916f649079cfd85b61ee84b4cbf7841063.zip
cpython-1b738e916f649079cfd85b61ee84b4cbf7841063.tar.gz
cpython-1b738e916f649079cfd85b61ee84b4cbf7841063.tar.bz2
Test exceptional condition in select()
Diffstat (limited to 'Lib/test/test_select.py')
-rw-r--r--Lib/test/test_select.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py
index d5bcfd5..e2c3cfe 100644
--- a/Lib/test/test_select.py
+++ b/Lib/test/test_select.py
@@ -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