[pypy-svn] r79176 - pypy/trunk/pypy/rpython/memory/test

arigo at codespeak.net arigo at codespeak.net
Wed Nov 17 11:13:08 CET 2010


Author: arigo
Date: Wed Nov 17 11:13:07 2010
New Revision: 79176

Modified:
   pypy/trunk/pypy/rpython/memory/test/test_gc.py
Log:
Simplify even more.


Modified: pypy/trunk/pypy/rpython/memory/test/test_gc.py
==============================================================================
--- pypy/trunk/pypy/rpython/memory/test/test_gc.py	(original)
+++ pypy/trunk/pypy/rpython/memory/test/test_gc.py	Wed Nov 17 11:13:07 2010
@@ -281,11 +281,11 @@
     def test_bug_1(self):
         import weakref
         class B(object):
-            def __del__(self):
-                pass
+            pass
         def g():
             b = B()
-            ref = weakref.ref(b)
+            llop.gc__collect(lltype.Void)    # force 'b' to be old
+            ref = weakref.ref(B())
             b.ref = ref
             return ref
         def f():



More information about the Pypy-commit mailing list