[pypy-commit] lang-smalltalk default: fix for tests when exectued on pypy
lwassermann
noreply at buildbot.pypy.org
Wed May 15 11:43:41 CEST 2013
Author: Lars Wassermann <lars.wassermann at gmail.com>
Branch:
Changeset: r387:ab85ac96fff8
Date: 2013-05-15 09:39 +0000
http://bitbucket.org/pypy/lang-smalltalk/changeset/ab85ac96fff8/
Log: fix for tests when exectued on pypy
diff --git a/spyvm/test/test_model.py b/spyvm/test/test_model.py
--- a/spyvm/test/test_model.py
+++ b/spyvm/test/test_model.py
@@ -330,4 +330,7 @@
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
More information about the pypy-commit
mailing list