diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-02-20 20:20:37 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-02-20 20:20:37 (GMT) |
commit | 34b345b8885e5db8ab6627c081ca86a8b78b6989 (patch) | |
tree | c1c7dded575360f9fbefb839c1da66cd17f40cb7 /Lib | |
parent | 9769eb063c764aa63e2342a395f5d6243d05252f (diff) | |
download | cpython-34b345b8885e5db8ab6627c081ca86a8b78b6989.zip cpython-34b345b8885e5db8ab6627c081ca86a8b78b6989.tar.gz cpython-34b345b8885e5db8ab6627c081ca86a8b78b6989.tar.bz2 |
don't rely on the order of module clearing
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_module.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py index 5605e3c..21eaf3e 100644 --- a/Lib/test/test_module.py +++ b/Lib/test/test_module.py @@ -70,7 +70,7 @@ class ModuleTests(unittest.TestCase): 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__) |