diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-13 22:23:47 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-13 22:23:47 (GMT) |
commit | 1b738e916f649079cfd85b61ee84b4cbf7841063 (patch) | |
tree | 22c4b5fbf4bb46976f4fe4aeb8c5da6b4208f591 /Lib/test/test_select.py | |
parent | 6fc36c549183860ba4b1b83cd34a47a51881f8db (diff) | |
download | cpython-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.py | 7 |
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 |