summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-19 07:35:07 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-19 07:35:07 (GMT)
commitab849891ef1d96c4f770fbd256b2436359146f03 (patch)
treea201a3732f3180a1a7093c84f3eb41440cedfcad /Lib
parent9db5540ec46d5163231de8ddc574c215b2384753 (diff)
downloadcpython-ab849891ef1d96c4f770fbd256b2436359146f03.zip
cpython-ab849891ef1d96c4f770fbd256b2436359146f03.tar.gz
cpython-ab849891ef1d96c4f770fbd256b2436359146f03.tar.bz2
#6944: the argument to PyArg_ParseTuple should be a tuple, otherwise a SystemError is set. Also clean up another usage of PyArg_ParseTuple.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 4b26824..66a402b 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -281,7 +281,7 @@ class GeneralModuleTests(unittest.TestCase):
# On some versions, this loses a reference
orig = sys.getrefcount(__name__)
socket.getnameinfo(__name__,0)
- except SystemError:
+ except TypeError:
if sys.getrefcount(__name__) <> orig:
self.fail("socket.getnameinfo loses a reference")