summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-23 23:34:13 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-23 23:34:13 (GMT)
commitb7eb563a2a69ba7182b8dc0634b53dc37b7d93a1 (patch)
treee0a8450293237caa37e4d408576ebc380ef5e2a2 /Lib/test/test_socket.py
parentcbfb9a56e686c3734a7de75b3dd2fa5a36f41d25 (diff)
downloadcpython-b7eb563a2a69ba7182b8dc0634b53dc37b7d93a1.zip
cpython-b7eb563a2a69ba7182b8dc0634b53dc37b7d93a1.tar.gz
cpython-b7eb563a2a69ba7182b8dc0634b53dc37b7d93a1.tar.bz2
Errors in "client" methods in test_socket were ignored because of a bogus except clause.
(this could reveal test failures!)
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 092e94f..8520401 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -2,6 +2,7 @@
import unittest
from test import support
+from unittest.case import _ExpectedFailure
import errno
import io
@@ -241,7 +242,7 @@ class ThreadableTest:
raise TypeError("test_func must be a callable function")
try:
test_func()
- except unittest._ExpectedFailure:
+ except _ExpectedFailure:
# We deliberately ignore expected failures
pass
except BaseException as e: