bpo-37124: Fix reference leak in test_msilib (GH-13750)

This commit is contained in:
Pablo Galindo 2019-06-02 21:36:21 +01:00 committed by GitHub
parent 6bdc4dee01
commit c0295dba25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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',