Author: Stefan Beyer <[email protected]>
Branch: cpyext-gc-cycle
Changeset: r96524:3466abcd4f70
Date: 2019-04-20 14:22 +0200
http://bitbucket.org/pypy/pypy/changeset/3466abcd4f70/

Log:    Fixed an error in rawrefcount dot tests and added a weakref test

diff --git a/rpython/memory/gc/test/dot/free_cpython_weakref_simple.dot 
b/rpython/memory/gc/test/dot/free_cpython_weakref_multi.dot
copy from rpython/memory/gc/test/dot/free_cpython_weakref_simple.dot
copy to rpython/memory/gc/test/dot/free_cpython_weakref_multi.dot
--- a/rpython/memory/gc/test/dot/free_cpython_weakref_simple.dot
+++ b/rpython/memory/gc/test/dot/free_cpython_weakref_multi.dot
@@ -4,4 +4,5 @@
     "a" -> "b";
     "b" -> "a";
     "a" -> "b" [weakref=y, callback=y, clear_callback=y];
+    "b" -> "a" [weakref=y, callback=y, clear_callback=y];
 }
diff --git a/rpython/memory/gc/test/test_rawrefcount.py 
b/rpython/memory/gc/test/test_rawrefcount.py
--- a/rpython/memory/gc/test/test_rawrefcount.py
+++ b/rpython/memory/gc/test/test_rawrefcount.py
@@ -76,7 +76,6 @@
                     if gc._obj.container == weakref.p._obj:
                         weakref.callback_cleared = True
                         cleared = True
-            assert cleared
 
         self.pyobj_list = lltype.malloc(PYOBJ_GC_HDR_PTR.TO, flavor='raw',
                                         immortal=True)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to