Commits

Lars Wassermann committed ab85ac9

fix for tests when exectued on pypy

Comments (0)

Files changed (1)

spyvm/test/test_model.py

 
     assert weak_object.fetch(space, 0) is referenced
     del referenced
+    # When executed using pypy, del is not immediately executed.
+    # Thus the reference may linger until the next gc...
+    import gc; gc.collect()
     assert weak_object.fetch(space, 0) is space.w_nil