gh-112068: C API: Add support of nullable arguments in PyArg_Parse (GH-121303)

This commit is contained in:
Serhiy Storchaka 2025-04-08 22:08:00 +03:00 committed by GitHub
parent 8421b648e9
commit f5f1ac84b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 324 additions and 142 deletions

View file

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