Skip to content

Commit a85f0e6

Browse files
committed
Fix refleak at test suite level
1 parent 707db41 commit a85f0e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_importlib/test_locks.py

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ class ModuleLockAsRLockTests:
3333
test_repr = None
3434
test_locked_repr = None
3535

36+
def tearDown(self):
37+
for splitinit in init.values():
38+
splitinit._bootstrap._blocking_on.clear()
39+
40+
3641
LOCK_TYPES = {kind: splitinit._bootstrap._ModuleLock
3742
for kind, splitinit in init.items()}
3843

0 commit comments

Comments
 (0)