Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r55236:955124f10b68
Date: 2012-05-31 16:09 +0200
http://bitbucket.org/pypy/pypy/changeset/955124f10b68/
Log: subtle py2 vs py3 difference
diff --git a/pypy/module/_weakref/test/test_weakref.py
b/pypy/module/_weakref/test/test_weakref.py
--- a/pypy/module/_weakref/test/test_weakref.py
+++ b/pypy/module/_weakref/test/test_weakref.py
@@ -208,7 +208,9 @@
assert w_bound()() == 42
del meth
gc.collect()
- assert w_unbound() is None
+ # it used to be None on py2, but now there is no longer a newly
+ # created unbound method object
+ assert w_unbound() is A.f
assert w_bound() is None
def test_set_weakrefable(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit