From: Antoine Pitrou Date: Tue, 18 Dec 2012 18:50:58 +0000 (+0100) Subject: Relax test when WITH_PYMALLOC is false or undefined. X-Git-Tag: v3.4.0a1~1824 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f61dc4cea24c2e994dc11947a6d67708af87ce50;p=python Relax test when WITH_PYMALLOC is false or undefined. --- diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 41f1439741..b664687663 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -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,