summaryrefslogtreecommitdiff
path: root/Lib/test/test_socketserver.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-04-09 01:37:19 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2012-04-09 01:37:19 +0200
commitc0aa9eeb90204b8a67a610180c003c182d1691aa (patch)
tree4f02fd5d9c3ecdc1ca9ee2e0c3e7231236a6d0ec /Lib/test/test_socketserver.py
parentf18d6f3f443bdfe3f349b2f49231a3c08a5b2d3f (diff)
downloadcpython-git-c0aa9eeb90204b8a67a610180c003c182d1691aa.tar.gz
Fix the patch for issue #7978: select() raises select.error before 3.3, not OSError.
Diffstat (limited to 'Lib/test/test_socketserver.py')
-rw-r--r--Lib/test/test_socketserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py
index 353f8ff3d4..ca23301cd1 100644
--- a/Lib/test/test_socketserver.py
+++ b/Lib/test/test_socketserver.py
@@ -244,7 +244,7 @@ class SocketServerTest(unittest.TestCase):
self.called += 1
if self.called == 1:
# raise the exception on first call
- raise OSError(errno.EINTR, os.strerror(errno.EINTR))
+ raise select.error(errno.EINTR, os.strerror(errno.EINTR))
else:
# Return real select value for consecutive calls
return old_select(*args)