diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-18 18:50:58 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-18 18:50:58 (GMT) |
commit | f61dc4cea24c2e994dc11947a6d67708af87ce50 (patch) | |
tree | e36df05fe39d1905c0849e4329ac9863e05635b5 | |
parent | a9466c653017771aaa60a08f0d7b2fe660b7f712 (diff) | |
download | cpython-f61dc4cea24c2e994dc11947a6d67708af87ce50.zip cpython-f61dc4cea24c2e994dc11947a6d67708af87ce50.tar.gz cpython-f61dc4cea24c2e994dc11947a6d67708af87ce50.tar.bz2 |
Relax test when WITH_PYMALLOC is false or undefined.
-rw-r--r-- | Lib/test/test_sys.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 41f1439..b664687 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, |