[Python-checkins] cpython: Relax test when WITH_PYMALLOC is false or undefined.
antoine.pitrou
python-checkins at python.org
Tue Dec 18 19:52:46 CET 2012
http://hg.python.org/cpython/rev/b6ced7bd7d96
changeset: 80927:b6ced7bd7d96
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Dec 18 19:50:58 2012 +0100
summary:
Relax test when WITH_PYMALLOC is false or undefined.
files:
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
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -623,7 +623,10 @@
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,
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list