mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Relax test when WITH_PYMALLOC is false or undefined.
This commit is contained in:
parent
a9466c6530
commit
f61dc4cea2
1 changed files with 4 additions and 1 deletions
|
@ -623,7 +623,10 @@ class SysModuleTest(unittest.TestCase):
|
|||
if with_pymalloc:
|
||||
self.assertGreater(a, 0)
|
||||
else:
|
||||
self.assertEqual(a, 0)
|
||||
# When WITH_PYMALLOC isn't available, we don't know anything
|
||||
# about the underlying implementation: the function might
|
||||
# return 0 or something greater.
|
||||
self.assertGreaterEqual(a, 0)
|
||||
try:
|
||||
# While we could imagine a Python session where the number of
|
||||
# multiple buffer objects would exceed the sharing of references,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue