-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix UpdateResource function + tests #57
Fix UpdateResource function + tests #57
Conversation
Codecov Report
@@ Coverage Diff @@
## prepare-0.1.0-release #57 +/- ##
========================================================
Coverage ? 90.77%
========================================================
Files ? 38
Lines ? 1019
Branches ? 94
========================================================
Hits ? 925
Misses ? 57
Partials ? 37
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor change. I think I will add a check_true
so that a bool is returned in such cases
finally: | ||
module.EndUpdateResource(handle, False) | ||
self.assertEqual(module.EndUpdateResource(handle, False), 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assertion should probably be moved to the test_begin_and_end_update_resource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, it should be added -- but this test would be equally invalid if that call failed, so it should be here also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point
28/631 pyinstaller tests fail, so there must be another API incompatibility lurking somewhere (unless it's an msys specific thing). Will look some more this weekend. |
No problem, I want to investigate something myself. I think there is an issue with UpdateResource and the |
Thanks!