Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_socket.py @ 77662:e2c749bafd6d
Errors in "client" methods in test_socket were ignored because of a bogus except clause.
(this could reveal test failures!)
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sun, 24 Jun 2012 01:34:13 +0200 |
| parents | 9b858096044e |
| children | b71dc2e9e00d |
line wrap: on
line diff
--- a/Lib/test/test_socket.py Sat Jun 23 16:02:19 2012 -0700 +++ b/Lib/test/test_socket.py Sun Jun 24 01:34:13 2012 +0200 @@ -2,6 +2,7 @@ import unittest from test import support +from unittest.case import _ExpectedFailure import errno import io @@ -241,7 +242,7 @@ 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:
