Skip to content
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

Merged
merged 2 commits into from
May 12, 2017

Conversation

virtuald
Copy link
Contributor

Thanks!

@codecov-io
Copy link

codecov-io commented May 12, 2017

Codecov Report

❗ No coverage uploaded for pull request base (prepare-0.1.0-release@2f4d71f). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@                   Coverage Diff                    @@
##             prepare-0.1.0-release      #57   +/-   ##
========================================================
  Coverage                         ?   90.77%           
========================================================
  Files                            ?       38           
  Lines                            ?     1019           
  Branches                         ?       94           
========================================================
  Hits                             ?      925           
  Misses                           ?       57           
  Partials                         ?       37
Impacted Files Coverage Δ
win32ctypes/core/ctypes/_kernel32.py 100% <ø> (ø)
win32ctypes/core/cffi/_kernel32.py 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f4d71f...6357e13. Read the comment docs.

Copy link
Member

@itziakos itziakos left a 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)
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point

@virtuald
Copy link
Contributor Author

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.

@itziakos
Copy link
Member

itziakos commented May 12, 2017

No problem, I want to investigate something myself. I think there is an issue with UpdateResource and the data passed to the resource. The pData needs to point to a continues array of bytes and the cdData is calculated in bytes. If I am right we need to make sure that we pass the right info depending on the input data object.

@itziakos itziakos merged commit 522b0de into enthought:prepare-0.1.0-release May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants