summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_msilib.py
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-05-31 16:43:13 (GMT)
committerSteve Dower <steve.dower@python.org>2019-05-31 16:43:13 (GMT)
commitc8d5bf6c3fa09b43f6a5ee779d493d251dbcc53c (patch)
tree44a1e31c84e4657a006f24351cc5427bb0aa3548 /Lib/test/test_msilib.py
parent4612671df2742eade8ecf8003a6ce1247973c135 (diff)
downloadcpython-c8d5bf6c3fa09b43f6a5ee779d493d251dbcc53c.zip
cpython-c8d5bf6c3fa09b43f6a5ee779d493d251dbcc53c.tar.gz
cpython-c8d5bf6c3fa09b43f6a5ee779d493d251dbcc53c.tar.bz2
bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH-13688)
msilib.Directory.start_component() was passing an extra argument to CAB.gen_id().
Diffstat (limited to 'Lib/test/test_msilib.py')
-rw-r--r--Lib/test/test_msilib.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_msilib.py b/Lib/test/test_msilib.py
index 4aa4753..265eaea 100644
--- a/Lib/test/test_msilib.py
+++ b/Lib/test/test_msilib.py
@@ -83,6 +83,15 @@ class MsiDatabaseTestCase(unittest.TestCase):
db.Close()
self.addCleanup(unlink, db_path)
+ def test_directory_start_component_keyfile(self):
+ db, db_path = init_database()
+ self.addCleanup(db.Close)
+ feature = msilib.Feature(db, 0, 'Feature', 'A feature', 'Python')
+ cab = msilib.CAB('CAB')
+ dir = msilib.Directory(db, cab, None, TESTFN, 'TARGETDIR',
+ 'SourceDir', 0)
+ dir.start_component(None, feature, None, 'keyfile')
+
class Test_make_id(unittest.TestCase):
#http://msdn.microsoft.com/en-us/library/aa369212(v=vs.85).aspx