diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-09 21:49:58 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-09 21:49:58 (GMT) |
commit | 131a6414dd023d8bfa71a05e76030c1e0aaf2c1d (patch) | |
tree | 3c78a195f7e96ba91dfb185e1073ba166750d472 /Lib/test/test_select.py | |
parent | c6a726d061023abf0fdf7af41a3602b8f405d303 (diff) | |
download | cpython-131a6414dd023d8bfa71a05e76030c1e0aaf2c1d.zip cpython-131a6414dd023d8bfa71a05e76030c1e0aaf2c1d.tar.gz cpython-131a6414dd023d8bfa71a05e76030c1e0aaf2c1d.tar.bz2 |
Issue #11757: select.select() now raises ValueError when a negative timeout
is passed (previously, a select.error with EINVAL would be raised). Patch
by Charles-François Natali.
Diffstat (limited to 'Lib/test/test_select.py')
-rw-r--r-- | Lib/test/test_select.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py index fe92f45..4a13ade 100644 --- a/Lib/test/test_select.py +++ b/Lib/test/test_select.py @@ -20,6 +20,7 @@ class SelectTestCase(unittest.TestCase): self.assertRaises(TypeError, select.select, [self.Nope()], [], []) self.assertRaises(TypeError, select.select, [self.Almost()], [], []) self.assertRaises(TypeError, select.select, [], [], [], "not a number") + self.assertRaises(ValueError, select.select, [], [], [], -1) def test_returned_list_identity(self): # See issue #8329 |