mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
#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:
parent
9db5540ec4
commit
ab849891ef
3 changed files with 12 additions and 6 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue