From c9015a7228029bb22fa581b31c4c1ebdc2882814 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 24 Jun 2019 04:56:17 -0700 Subject: [PATCH] bpo-37124: Fix reference leak in test_msilib (GH-13750) (cherry picked from commit c0295dba259accc4b247beb22a0b2cc2f31d9850) Co-authored-by: Pablo Galindo --- Lib/test/test_msilib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_msilib.py b/Lib/test/test_msilib.py index 265eaea59b5..392886c6a96 100644 --- a/Lib/test/test_msilib.py +++ b/Lib/test/test_msilib.py @@ -86,6 +86,7 @@ class MsiDatabaseTestCase(unittest.TestCase): def test_directory_start_component_keyfile(self): db, db_path = init_database() self.addCleanup(db.Close) + self.addCleanup(msilib._directories.clear) feature = msilib.Feature(db, 0, 'Feature', 'A feature', 'Python') cab = msilib.CAB('CAB') dir = msilib.Directory(db, cab, None, TESTFN, 'TARGETDIR',