]> granicus.if.org Git - python/commitdiff
Fix another callable warning.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 6 Nov 2011 15:50:52 +0000 (17:50 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 6 Nov 2011 15:50:52 +0000 (17:50 +0200)
Lib/test/test_socket.py

index 0d6240d8e169aabbaec8886176c6b516dc2194b6..b094ce958668d64f037e7eabfa9bda9adc3d6508 100644 (file)
@@ -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: