Commit a56c85e9 authored by Antoine Pitrou's avatar Antoine Pitrou

Errors in "client" methods in test_socket were ignored because of a bogus except clause.

(this could reveal test failures!)
parent f1986853
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment