[Python-checkins] cpython (2.7): don't rely on the order of module clearing

benjamin.peterson python-checkins at python.org
Mon Feb 20 21:21:35 CET 2012


http://hg.python.org/cpython/rev/2e8b28dbc395
changeset: 75072:2e8b28dbc395
branch: 2.7
parent: 75069:cfd60d0d448b
user: Benjamin Peterson <benjamin at python.org>
date: Mon Feb 20 15:20:37 2012 -0500
summary:
 don't rely on the order of module clearing
files:
 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
--- a/Lib/test/test_module.py
+++ b/Lib/test/test_module.py
@@ -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__)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /