-
Notifications
You must be signed in to change notification settings - Fork 145
Fix replay tests #82
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 replay tests #82
Conversation
- make sure there is really a zerg in that replay, otherwise the test would test nothing at all - remove outdated comment, that test does not fail.
Ah so it seems not only did So I am also trying to fix that now... |
I think the s2gs functionality of this library may be safely removed. We added s2gs parsing back in 2012 because back then s2gs was a valuable source of information about matches for GGTracker. But the only way to get s2gs files en masse is to automate the SC2 client, and I'm not aware of anyone doing that kind of thing these days. |
Thanks @dsjoerg for this comment. I propose to have a dedicated issue, in order to discuss the removal of an unused feature. Since the purpose of this PR was to make some existing tests run again. |
@@ -7,6 +7,7 @@ | |||
|
|||
# Newer unittest features aren't built in for python 2.6 | |||
import sys | |||
|
|||
if sys.version_info[:2] < (2, 7): |
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.
Maybe not for this PR but do we really need to support Python versions < 2.7 -- They have been EOL for 5+ years.
https://devguide.python.org/devcycle/#end-of-life-branches
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 personally totally agree here.
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.
https://github.com/ggtracker/sc2reader#installation says 2.6 is supported! My vote would be to drop all legacy Python support.
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.
Agreed. Should I open a dedicated issue for this? So others can have a word?
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.
done
Should we merge this? |
Are the format modification made by python/black? |
yes. Sorry .. was maybe a bit forward of me. Should I remove that? |
I am a fan of python/black but others are free to disagree. |
Looks good to me. Thanks for fixing this! I am also okay using black. I'll make an issue for it |
should fix #78
For reviewers:
black -l 127