]> granicus.if.org Git - python/commitdiff
Test exceptional condition in select()
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 13 Jun 2002 22:23:47 +0000 (22:23 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 13 Jun 2002 22:23:47 +0000 (22:23 +0000)
Lib/test/test_select.py

index d5bcfd554723271e5daab4e81f53066686182bc0..e2c3cfef631e1bc9888539ca11e53148d1955c15 100644 (file)
@@ -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