From: Ezio Melotti Date: Sun, 6 Nov 2011 15:50:52 +0000 (+0200) Subject: Fix another callable warning. X-Git-Tag: v2.7.3rc1~321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b22c3fe5d8a81636b41503f035da03b1f1174570;p=python Fix another callable warning. --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 0d6240d8e1..b094ce9586 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: