8000 don't rely on the order of module clearing · python/cpython@a3ed11b · GitHub
[go: up one dir, main page]

Skip to content

Commit a3ed11b

Browse files
committed
don't rely on the order of module clearing
1 parent 2daf6ae commit a3ed11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_clear_dict_in_ref_cycle(self):
7070
m = ModuleType("foo")
7171
m.destroyed = destroyed
7272
s = """class A:
73-
def __del__(self):
73+
def __del__(self, destroyed=destroyed):
7474
destroyed.append(1)
7575
a = A()"""
7676
exec(s, m.__dict__)

0 commit comments

Comments
 (0)
0