diff options
-rw-r--r-- | Lib/test/test_socket.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 0d6240d..b094ce9 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -147,9 +147,8 @@ class ThreadableTest: self.server_ready.wait() self.clientSetUp() self.client_ready.set() - with test_support.check_py3k_warnings(): - if not callable(test_func): - raise TypeError("test_func must be a callable function.") + if not callable(test_func): + raise TypeError("test_func must be a callable function.") try: test_func() except Exception, strerror: |