Skip to content

Commit 3c92a06

Browse files
authored
gh-161490: Fix leak in test_any_str_deprecated in test_typing (#161491)
1 parent d138fd9 commit 3c92a06

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Lib/test/test_typing.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11300,6 +11300,7 @@ def test_all_exported_names(self):
1130011300
def test_any_str_deprecated(self):
1130111301
# gh-105578
1130211302
fresh = import_helper.import_fresh_module('typing')
11303+
self.addCleanup(atexit.unregister, fresh._clear_caches)
1130311304

1130411305
with self.assertWarnsRegex(DeprecationWarning, r'typing\.AnyStr'):
1130511306
fresh.AnyStr

0 commit comments

Comments
 (0)