mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
PyArg_Parse*() functions: factorize code for s/z and u/Z formats
This commit is contained in:
parent
4aae1ebab2
commit
3c9e6e9375
2 changed files with 26 additions and 97 deletions
|
|
@ -184,7 +184,7 @@ class NamespaceSeparatorTest(unittest.TestCase):
|
|||
self.fail()
|
||||
except TypeError as e:
|
||||
self.assertEquals(str(e),
|
||||
'ParserCreate() argument 2 must be string or None, not int')
|
||||
'ParserCreate() argument 2 must be str or None, not int')
|
||||
|
||||
try:
|
||||
expat.ParserCreate(namespace_separator='too long')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue