New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msilib Directory.start_component() fails if keyfile is not None #56848
Comments
If msilib.Directory.start_component() is called with the keyfile argument not None then it attempts to call self.cab.gen_id(self.absolute, keyfile) but the msilib.CAB.gen_id() method takes only two arguments (not three). |
@Steve can you take a look at the patch please, it only changes one line. |
I guess it's okay, but I have literally zero knowledge or experience with the msilib module. Martin is still maintainer for that, as far as I know. |
Thanks, Zackery! The backports are running CI now and should merge if everything passes. |
Looks like the tests need to be customized for 2.7 and 3.6: Traceback (most recent call last):
File "D:\a\1\s\lib\test\test_msilib.py", line 64, in test_directory_start_component_keyfile
self.addCleanup(db.Close)
AttributeError: '_msi.Database' object has no attribute 'Close' I can edit directly in miss-islington's branch, but what's the change? Do we just remove the addCleanup code? Or should we just skip the backport? |
Thanks for looking at this issue, Steve. At this point in time, 3.6 only takes security fixes, so PR 13703 should be closed. The Close() method was added in 3.7, so I think removing the addCleanup() call is the way to go for 2.7. |
test_msilib is leaking references https://bugs.python.org/issue37124 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: