Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_module.py @ 75071:11b09df370e7 3.1
don't rely on the order of module clearing
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 20 Feb 2012 15:20:37 -0500 |
| parents | 3e8d28886ad6 |
| children | ed76dc34b39d |
line wrap: on
line diff
--- a/Lib/test/test_module.py Mon Feb 20 19:54:16 2012 +0100 +++ b/Lib/test/test_module.py Mon Feb 20 15:20:37 2012 -0500 @@ -70,7 +70,7 @@ 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__)
