From d82cb23b193fa865df351fd088a970c7ee2875a5 Mon Sep 17 00:00:00 2001 From: Alastair Donaldson Date: Mon, 30 Sep 2024 11:52:01 +0100 Subject: [PATCH] Refine test to work under Windows. --- test/bespoke/skip_bad_files/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bespoke/skip_bad_files/test.py b/test/bespoke/skip_bad_files/test.py index 026f840f..f4667675 100644 --- a/test/bespoke/skip_bad_files/test.py +++ b/test/bespoke/skip_bad_files/test.py @@ -26,7 +26,7 @@ def main(): # Dredd should return non-zero, due to 'bad1.c' and 'bad2.c' assert result.returncode != 0 error_output = result.stderr.decode('utf-8') - pattern = "The following files were not mutated due to compile-time errors; see above for details:\n [^\s]+bad1\.c\n [^\s]+bad2\.c" + pattern = "The following files were not mutated due to compile-time errors; see above for details:\s+[^\s]+bad1\.c\s+[^\s]+bad2\.c" match = re.search(pattern, error_output) assert match is not None dictionary = json.load(open('info.json'))