-
-
Notifications
You must be signed in to change notification settings - Fork 395
Fix tests failing on Windows. #652
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
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.
LGTM 👍🏾
@ganpa3 Its not completely fixed
|
@ganpa3 Even while testing the botserver
|
I think we need to replace these paths with the os.path.join version instead of hardcoding them as Linux paths. I think this is what the error demands us to. |
mypy version 0.770 has a bug where it raises false "syntax error in type comment" warnings on Python 3.9 python/mypy#8627 It has been fixed. zulint had a bug where it raised UnicodeDecodeError while running on Windows, which has been fixed. zulip/zulint@14e3974
Tests were failing on Windows since paths are case-insensitive on it. This uses pathlib library to compare paths on all platforms. Fixes #651
@timabbott Ping for a review. |
Merged, thanks @ganpa3! I think a good follow-up project would be to look at setting up a GitHub Actions-based windows test to verify this doesn't regress in the future. |
@timabbott Made a PR to setup ci for Windows #662 |
Tests were failing on Windows since paths are case-insensitive on it.
This uses pathlib library to compare paths on all platforms.
Fixes #651