don't rely on the order of module clearing

This commit is contained in:
Benjamin Peterson 2012-02-20 15:20:37 -05:00
parent 9769eb063c
commit 34b345b888
1 changed files with 1 additions and 1 deletions

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__)