From: Neal Norwitz Date: Thu, 13 Jun 2002 22:23:47 +0000 (+0000) Subject: Test exceptional condition in select() X-Git-Tag: v2.3c1~5323 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b738e916f649079cfd85b61ee84b4cbf7841063;p=thirdparty%2FPython%2Fcpython.git Test exceptional condition in select() --- diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py index d5bcfd554723..e2c3cfef631e 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