[pypy-svn] r51606 - pypy/dist/pypy/lib/app_test/ctypes
fijal at codespeak.net
fijal at codespeak.net
Mon Feb 18 21:43:29 CET 2008
Author: fijal
Date: Mon Feb 18 21:43:29 2008
New Revision: 51606
Modified:
pypy/dist/pypy/lib/app_test/ctypes/support.py
Log:
This way we can test equality.
Modified: pypy/dist/pypy/lib/app_test/ctypes/support.py
==============================================================================
--- pypy/dist/pypy/lib/app_test/ctypes/support.py (original)
+++ pypy/dist/pypy/lib/app_test/ctypes/support.py Mon Feb 18 21:43:29 2008
@@ -7,7 +7,8 @@
pass
else:
import gc
- gc.collect()
+ for _ in range(4):
+ gc.collect()
cls.old_num = _rawffi._num_of_allocated_objects()
def teardown_class(cls):
@@ -21,4 +22,4 @@
for _ in range(4):
gc.collect()
# there is one reference coming from the byref() above
- assert _rawffi._num_of_allocated_objects() <= cls.old_num
+ assert _rawffi._num_of_allocated_objects() == cls.old_num
More information about the Pypy-commit
mailing list