mirror of https://github.com/python/cpython
Merge with 3.1.
This commit is contained in:
commit
b9dafe618f
|
@ -70,7 +70,7 @@ class ModuleTests(unittest.TestCase):
|
||||||
m = ModuleType("foo")
|
m = ModuleType("foo")
|
||||||
m.destroyed = destroyed
|
m.destroyed = destroyed
|
||||||
s = """class A:
|
s = """class A:
|
||||||
def __del__(self):
|
def __del__(self, destroyed=destroyed):
|
||||||
destroyed.append(1)
|
destroyed.append(1)
|
||||||
a = A()"""
|
a = A()"""
|
||||||
exec(s, m.__dict__)
|
exec(s, m.__dict__)
|
||||||
|
|
Loading…
Reference in New Issue