[Python-checkins] cpython (2.7): Fix another callable warning.

ezio.melotti python-checkins at python.org
Sun Nov 6 16:51:27 CET 2011


http://hg.python.org/cpython/rev/8a0e7eb18f16
changeset:   73405:8a0e7eb18f16
branch:      2.7
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sun Nov 06 17:50:52 2011 +0200
summary:
  Fix another callable warning.

files:
  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
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -147,9 +147,8 @@
         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:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list