Merge with 3.1.

This commit is contained in:
Georg Brandl 2012-02-20 21:43:25 +01:00
commit b9dafe618f

View file

@ -70,7 +70,7 @@ def test_clear_dict_in_ref_cycle(self):
m = ModuleType("foo")
m.destroyed = destroyed
s = """class A:
def __del__(self):
def __del__(self, destroyed=destroyed):
destroyed.append(1)
a = A()"""
exec(s, m.__dict__)