From 98d57b0b27887ac68335c4f99f041d260fcd0784 Mon Sep 17 00:00:00 2001 From: devdanzin <74280297+devdanzin@users.noreply.github.com> Date: Sun, 28 Apr 2024 14:10:12 -0300 Subject: [PATCH 1/2] Support scrubbing temporary paths in test_html.py on Windows. --- tests/test_html.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_html.py b/tests/test_html.py index a2b592cbb..da8be575e 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -712,6 +712,7 @@ 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 From 0df3a27a8d06d48404ecae212eddb2ccec922e66 Mon Sep 17 00:00:00 2001 From: devdanzin <74280297+devdanzin@users.noreply.github.com> Date: Sun, 28 Apr 2024 14:44:12 -0300 Subject: [PATCH 2/2] Fix long line in test_html. --- tests/test_html.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_html.py b/tests/test_html.py index da8be575e..c4f7870d0 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -712,7 +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'[A-Z]:\\Users\\[\w\\]+\\pytest-of-\w+\\pytest-\d+\\(popen-gw\d+\\)?t\d+', + 'TEST_TMPDIR') + ] scrubs += [(r"\\", "/")] if extra_scrubs: scrubs += extra_scrubs