[pypy-commit] pypy stdlib-2.7.3: Give a __del__ to the other class, to silence a pypy specific warning.
amauryfa
noreply at buildbot.pypy.org
Thu Jun 14 23:15:02 CEST 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: stdlib-2.7.3
Changeset: r55666:9f04fe68df97
Date: 2012-06-14 08:44 +0200
http://bitbucket.org/pypy/pypy/changeset/9f04fe68df97/
Log: Give a __del__ to the other class, to silence a pypy specific
warning.
diff --git a/lib-python/2.7/test/test_descr.py b/lib-python/2.7/test/test_descr.py
--- a/lib-python/2.7/test/test_descr.py
+++ b/lib-python/2.7/test/test_descr.py
@@ -3128,7 +3128,8 @@
# Issue5283: when __class__ changes in __del__, the wrong
# type gets DECREF'd.
class O(object):
- pass
+ def __del__(self):
+ pass
class A(object):
def __del__(self):
self.__class__ = O
More information about the pypy-commit
mailing list