Skip to content

Commit

Permalink
Fix module size in test_objecttypes
Browse files Browse the repository at this point in the history
Also fix the module format string for normal builds, since it only contains
pointers (no `size_t`).
  • Loading branch information
swtaarrs committed Apr 15, 2024
1 parent f7c3e50 commit 6c198e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,10 @@ def get_gen(): yield 1
check(int(PyLong_BASE**2-1), vsize('') + 2*self.longdigit)
check(int(PyLong_BASE**2), vsize('') + 3*self.longdigit)
# module
check(unittest, size('PnPPP'))
if support.Py_GIL_DISABLED:
check(unittest, size('PPPPPP'))
else:
check(unittest, size('PPPPP'))
# None
check(None, size(''))
# NotImplementedType
Expand Down

0 comments on commit 6c198e4

Please sign in to comment.