-
Notifications
You must be signed in to change notification settings - Fork 574
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
Couple of changes to tests to support python3 #1749
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.
These changes does not affect anything as I can see. It's just minus one test case.
@@ -73,7 +73,8 @@ class TestCrypto(RIPEMD160TestCase, unittest.TestCase): | |||
"""RIPEMD160 test case for Crypto""" | |||
@staticmethod | |||
def _hashdigest(data): | |||
return RIPEMD.RIPEMD160Hash(data).digest() | |||
from pybitmessage.fallback import RIPEMD160Hash | |||
return RIPEMD160Hash(data).digest() |
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 didn't get it. This part of the test should use pycrypto
or pycryptodome
, not fallback. Because it's the test for fallback itself.
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.
Comment stating this would've been helpful.
This get me past complaints when using python3 so looks like it's not irrelevant. |
You even didn't bother to read #1712 and trying to edit the code you don't understand ): |
I've been aware of it for a while but if you want more specific changes you'll have to provide more specific suggestions. |
I'm not using skip_python3() event though it's still included here. Same as in #1712 |
After these changes tests start to complain about things fixed by #1746