summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-02-20 20:20:37 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-02-20 20:20:37 (GMT)
commita3ed11bd3409d61e6eb35995743e405790df2d3c (patch)
tree8bdbc7b2a3f66a38d00cd97ef2f015e95f3b73ec /Lib
parent2daf6ae2495c862adf8bc717bfe9964081ea0b10 (diff)
downloadcpython-a3ed11bd3409d61e6eb35995743e405790df2d3c.zip
cpython-a3ed11bd3409d61e6eb35995743e405790df2d3c.tar.gz
cpython-a3ed11bd3409d61e6eb35995743e405790df2d3c.tar.bz2
don't rely on the order of module clearing
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_module.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py
index 7734fb0..15836ca 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__)