Unverified Kaydet (Commit) c0295dba authored tarafından Pablo Galindo's avatar Pablo Galindo Kaydeden (comit) GitHub

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

üst 6bdc4dee
...@@ -87,6 +87,7 @@ class MsiDatabaseTestCase(unittest.TestCase): ...@@ -87,6 +87,7 @@ class MsiDatabaseTestCase(unittest.TestCase):
db, db_path = init_database() db, db_path = init_database()
self.addCleanup(unlink, db_path) self.addCleanup(unlink, db_path)
self.addCleanup(db.Close) self.addCleanup(db.Close)
self.addCleanup(msilib._directories.clear)
feature = msilib.Feature(db, 0, 'Feature', 'A feature', 'Python') feature = msilib.Feature(db, 0, 'Feature', 'A feature', 'Python')
cab = msilib.CAB('CAB') cab = msilib.CAB('CAB')
dir = msilib.Directory(db, cab, None, TESTFN, 'TARGETDIR', dir = msilib.Directory(db, cab, None, TESTFN, 'TARGETDIR',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment