Skip to content

Commit

Permalink
test(fix): support scrubbing absolute temporary paths in test_html.py…
Browse files Browse the repository at this point in the history
… on Windows (#1771)

* Support scrubbing temporary paths in test_html.py on Windows.

* Fix long line in test_html.
  • Loading branch information
devdanzin committed Apr 29, 2024
1 parent fb52e47 commit 0ae5775
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_html.py
Expand Up @@ -712,6 +712,10 @@ def compare_html(
]
if env.WINDOWS:
# For file paths...
scrubs += [
(r'[A-Z]:\\Users\\[\w\\]+\\pytest-of-\w+\\pytest-\d+\\(popen-gw\d+\\)?t\d+',
'TEST_TMPDIR')
]
scrubs += [(r"\\", "/")]
if extra_scrubs:
scrubs += extra_scrubs
Expand Down

0 comments on commit 0ae5775

Please sign in to comment.