mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-112068: C API: Add support of nullable arguments in PyArg_Parse (GH-121303)
This commit is contained in:
parent
8421b648e9
commit
f5f1ac84b3
11 changed files with 324 additions and 142 deletions
|
@ -732,7 +732,7 @@ class MmapTests(unittest.TestCase):
|
|||
m2.close()
|
||||
m1.close()
|
||||
|
||||
with self.assertRaisesRegex(TypeError, 'tagname'):
|
||||
with self.assertRaisesRegex(TypeError, 'must be str or None'):
|
||||
mmap.mmap(-1, 8, tagname=1)
|
||||
|
||||
@cpython_only
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue