#6944: the argument to PyArg_ParseTuple should be a tuple, otherwise a SystemError is set. Also clean up another usage of PyArg_ParseTuple.

This commit is contained in:
Georg Brandl 2009-09-19 07:35:07 +00:00
parent 9db5540ec4
commit ab849891ef
3 changed files with 12 additions and 6 deletions

View file

@ -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")