bpo-37124: Fix reference leak in test_msilib (GH-13750)
(cherry picked from commit c0295dba25
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
parent
5779898a1f
commit
c9015a7228
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue