summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_select.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 20:23:46 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-17 20:23:46 (GMT)
commit6d8a122b9c0f9a8032030c208a467a4923a96266 (patch)
tree40d497f177b35a7e77f7bbafde81f8f9cfa8f38a /Lib/test/test_select.py
parent5ee29491e57b7477921f71e8dacfe1e1a3336912 (diff)
downloadcpython-6d8a122b9c0f9a8032030c208a467a4923a96266.zip
cpython-6d8a122b9c0f9a8032030c208a467a4923a96266.tar.gz
cpython-6d8a122b9c0f9a8032030c208a467a4923a96266.tar.bz2
Issue #16704: Get rid of select.error in stdlib. Use OSError instead.
Diffstat (limited to 'Lib/test/test_select.py')
-rw-r--r--Lib/test/test_select.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_select.py b/Lib/test/test_select.py
index dee5921..8f9a1c9 100644
--- a/Lib/test/test_select.py
+++ b/Lib/test/test_select.py
@@ -32,7 +32,7 @@ class SelectTestCase(unittest.TestCase):
fp.close()
try:
select.select([fd], [], [], 0)
- except select.error as err:
+ except OSError as err:
self.assertEqual(err.errno, errno.EBADF)
else:
self.fail("exception not raised")