[pypy-commit] pypy default: Fix test
arigo
noreply at buildbot.pypy.org
Tue Jan 14 09:43:31 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r68657:5c1e61b82376
Date: 2014-01-14 09:36 +0100
http://bitbucket.org/pypy/pypy/changeset/5c1e61b82376/
Log: Fix test
diff --git a/pypy/module/test_lib_pypy/ctypes_tests/support.py b/pypy/module/test_lib_pypy/ctypes_tests/support.py
--- a/pypy/module/test_lib_pypy/ctypes_tests/support.py
+++ b/pypy/module/test_lib_pypy/ctypes_tests/support.py
@@ -31,8 +31,10 @@
import gc
for _ in range(4):
gc.collect()
- cls.old_num = _rawffi._num_of_allocated_objects()
-
+ try:
+ cls.old_num = _rawffi._num_of_allocated_objects()
+ except RuntimeError:
+ pass
def teardown_class(cls):
if sys.pypy_translation_info['translation.gc'] == 'boehm':
More information about the pypy-commit
mailing list