diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-24 04:56:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 04:56:17 -0700 |
commit | c9015a7228029bb22fa581b31c4c1ebdc2882814 (patch) | |
tree | b16f623f982119c9d125df62ff9d9bb4e6152919 | |
parent | 5779898a1f2e959d4064c34ab3c655f785795322 (diff) | |
download | cpython-git-c9015a7228029bb22fa581b31c4c1ebdc2882814.tar.gz |
bpo-37124: Fix reference leak in test_msilib (GH-13750)
(cherry picked from commit c0295dba259accc4b247beb22a0b2cc2f31d9850)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
-rw-r--r-- | Lib/test/test_msilib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_msilib.py b/Lib/test/test_msilib.py index 265eaea59b..392886c6a9 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', |