summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-06-02 20:36:21 (GMT)
committerGitHub <noreply@github.com>2019-06-02 20:36:21 (GMT)
commitc0295dba259accc4b247beb22a0b2cc2f31d9850 (patch)
tree7297ad34d0631a42b8916c81a98b842398976720 /Lib
parent6bdc4dee01788599808c7858e2fe9fdd72cf6792 (diff)
downloadcpython-c0295dba259accc4b247beb22a0b2cc2f31d9850.zip
cpython-c0295dba259accc4b247beb22a0b2cc2f31d9850.tar.gz
cpython-c0295dba259accc4b247beb22a0b2cc2f31d9850.tar.bz2
bpo-37124: Fix reference leak in test_msilib (GH-13750)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_msilib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_msilib.py b/Lib/test/test_msilib.py
index fa0be58..f9bd0da 100644
--- a/Lib/test/test_msilib.py
+++ b/Lib/test/test_msilib.py
@@ -87,6 +87,7 @@ class MsiDatabaseTestCase(unittest.TestCase):
db, db_path = init_database()
self.addCleanup(unlink, db_path)
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',