Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9466c6 commit f61dc4cCopy full SHA for f61dc4c
1 file changed
Lib/test/test_sys.py
@@ -623,7 +623,10 @@ def test_getallocatedblocks(self):
623
if with_pymalloc:
624
self.assertGreater(a, 0)
625
else:
626
- self.assertEqual(a, 0)
+ # When WITH_PYMALLOC isn't available, we don't know anything
627
+ # about the underlying implementation: the function might
628
+ # return 0 or something greater.
629
+ self.assertGreaterEqual(a, 0)
630
try:
631
# While we could imagine a Python session where the number of
632
# multiple buffer objects would exceed the sharing of references,
0 commit comments