summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-11-06 15:50:52 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-11-06 15:50:52 (GMT)
commitb22c3fe5d8a81636b41503f035da03b1f1174570 (patch)
treed72466e5ec5944c32e63d3b0611a624a9d9c2372 /Lib/test/test_socket.py
parent152d61aa5b38b83e4017e38f0d326f8df8541b4b (diff)
downloadcpython-b22c3fe5d8a81636b41503f035da03b1f1174570.zip
cpython-b22c3fe5d8a81636b41503f035da03b1f1174570.tar.gz
cpython-b22c3fe5d8a81636b41503f035da03b1f1174570.tar.bz2
Fix another callable warning.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py5
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: