Commits

Armin Rigo  committed 5c1e61b

Fix test

  • Participants
  • Parent commits 55aed86

Comments (0)

Files changed (1)

File pypy/module/test_lib_pypy/ctypes_tests/support.py

             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':