Author: Armin Rigo <[email protected]>
Branch: gc-minimark-pinning
Changeset: r55051:6f9c5b6aed37
Date: 2012-05-11 20:25 +0200
http://bitbucket.org/pypy/pypy/changeset/6f9c5b6aed37/

Log:    I *think* this is true.

diff --git a/pypy/rlib/rgc.py b/pypy/rlib/rgc.py
--- a/pypy/rlib/rgc.py
+++ b/pypy/rlib/rgc.py
@@ -22,7 +22,8 @@
     return False
 
 def unpin(obj):
-    pass
+    raise AssertionError("pin() always returns False, "
+                         "so unpin() should not be called")
 
 # ____________________________________________________________
 # Annotation and specialization
diff --git a/pypy/rlib/test/test_rgc.py b/pypy/rlib/test/test_rgc.py
--- a/pypy/rlib/test/test_rgc.py
+++ b/pypy/rlib/test/test_rgc.py
@@ -176,7 +176,6 @@
     l = []
     assert rgc.pin(l) is False
     l.append(3)
-    rgc.unpin(l)
     assert l == [3]
 
 def test_interp_pin_obj():
diff --git a/pypy/rpython/lltypesystem/llheap.py 
b/pypy/rpython/lltypesystem/llheap.py
--- a/pypy/rpython/lltypesystem/llheap.py
+++ b/pypy/rpython/lltypesystem/llheap.py
@@ -38,5 +38,6 @@
     return False
 
 def unpin(obj):
-    pass
+    raise AssertionError("pin() always returns False, "
+                         "so unpin() should not be called")
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to