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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b738e916f649079cfd85b61ee84b4cbf7841063;p=python Test exceptional condition in select() --- diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py index d5bcfd5547..e2c3cfef63 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