Skip to content

Commit 0ae5775

Browse files
authored
test(fix): support scrubbing absolute temporary paths in test_html.py on Windows (#1771)
* Support scrubbing temporary paths in test_html.py on Windows. * Fix long line in test_html.
1 parent fb52e47 commit 0ae5775

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_html.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,10 @@ def compare_html(
712712
]
713713
if env.WINDOWS:
714714
# For file paths...
715+
scrubs += [
716+
(r'[A-Z]:\\Users\\[\w\\]+\\pytest-of-\w+\\pytest-\d+\\(popen-gw\d+\\)?t\d+',
717+
'TEST_TMPDIR')
718+
]
715719
scrubs += [(r"\\", "/")]
716720
if extra_scrubs:
717721
scrubs += extra_scrubs

0 commit comments

Comments
 (0)