-
Notifications
You must be signed in to change notification settings - Fork 30
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 test_getters_dir test for windows, add missing long for py2, test… #4
Conversation
# os.path.getsize() can be longs on py2 | ||
if sys.version_info <= (3, 0): | ||
a_long = 741634835L | ||
encoded_long = Bencode.encode(a_long) |
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.
Actual testing clause missing?
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.
No, this simply proves that it works. Without adding long to int_types in the bencode file this would have failed.
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.
I see. Here we should use @pytest.mark.skipif so to check python version, otherwise we get SyntaxError on Py3. https://travis-ci.org/idlesign/torrentool/jobs/157047830#L260
Thank you. There are questions though.
So |
No, the length is 5. Ill add the traceback later. I cant remember what was wrong |
OK, will wait. |
|
…_create still fails because length is 5 on my computer and 4 in the data. Dunno whats correct :P
|
Since there are 4 bytes We can
|
Merged. |
…_create still fails because length is 5 on my computer and 4 in the data. Dunno whats correct