Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix failing windows tests #7601

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Conversation

exitflynn
Copy link
Contributor

The Scraper branch's windows tests had been failing since we were using pathlib.Path in the tests to send the directory path, which comes out with backslashes in windows fashion and would let us down when comparing with a forward-slash pattern. The way it's handled in main is we simply just don't use Path() to get OS-specific filepaths, and just linux style forward-slash strings. I've reverted it to match with main, though a discussion could be had if we should include pathlib.Path generated paths there 馃

Another error was because in one of the functions, scraper internally replaces \ with / in the pattern when in windows. I had previously replaced one of the two pattern variables and had missed the other one

@exitflynn exitflynn requested a review from a team as a code owner April 25, 2024 14:29
@nabobalis nabobalis merged commit c46ab8d into sunpy:scraper_rewrite Apr 25, 2024
19 of 25 checks passed
@nabobalis
Copy link
Contributor

Thanks @exitflynn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants