-
Notifications
You must be signed in to change notification settings - Fork 4
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
Cover make_hash on Python 3. #117
base: edge
Are you sure you want to change the base?
Conversation
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.
While this looks alright and I'd really like to get that unit test added I think we should briefly discuss if this is indeed the way we want to address code that has already been ported to py3 with various force_X
wrappers in the experimental
branch. E.g. if it should go through mig.shared.compat
or similar. I mean, to limit the amount of changing back and forth in both branches.
Hm. So, I've hit multiple cases recently where use of the force functions (and thus the partial port) does not produce the same result. My stance thus has become I'll take working covered code over code that happens to be written with force functions. Once there is a test that can be run once is free to change them however one wants, inclucing to make use of the force functions, but the catc-h-22 of having no coverage has to be solved first. Ideally there would be no use of force in the Py2 tree, but unfortunately we're not there - and some of the "partial porting" that has been done doesn't work. |
8ae376b
to
bc56206
Compare
Sorry about the slow response. My point in the comment above was that AFAICT you've replaced the existing You're right about catch-22's lurking and I don't have a good solution at hand, but I think we need to decide if/what we want to backport to Hmmm, I'm not sure I understand which "partial porting" that 'doesn't work' you refer to, but perhaps that's a matter of definition/expectations ... To my understanding we're fine as long as we use py2 with |
deb99dd
to
787f546
Compare
1905954
to
73fe08f
Compare
With the correct force_utf8 function for each version available this becomes a test addition only. |
73fe08f
to
df0c562
Compare
Import the experimental branch version of force_utf8 wholesale adding a -py(2|3) suffix and expose the correct implementation dependent on PY2. Include forcing InputException messages to a native string as is done in experimental (also taken directly from that branch) which ensures the exception message, which may be unicode, becomes a string everywhere.
df0c562
to
3a41d85
Compare
Depends on: #140