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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrub absolute Windows temporary paths on all OSes when running test_html.py #1772

Closed
wants to merge 4 commits into from

Conversation

devdanzin
Copy link
Contributor

Sorry, #1771 has a flaw: it only applies the scrubbing when tests run on Windows, so the tests fail on other OSes.

This PR fixes that.

@nedbat
Copy link
Owner

nedbat commented Apr 30, 2024

I was also looking at this now. The last scrub also needs to run when not on Windows. You should make this change on your other PR instead of as a new PR, so that we can be sure to get all the cases.

It feels strange to use scrubs += [(r"\\", "/")] everywhere, and I was wondering if there was a way to limit it to only filenames, but I don't see a way without expanding how the scrub() function works.

@nedbat
Copy link
Owner

nedbat commented Apr 30, 2024

See this suggestion: #1768 (comment)

@devdanzin devdanzin closed this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants