From fa3779cc0e3acbbd2ae73e5a309dcc674a439cff Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sat, 6 Jul 2024 15:45:43 +0200 Subject: [PATCH] Replace abs paths in tracebacks for win tests Co-authored-by: Ali Hamdan --- mypyc/test/test_run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mypyc/test/test_run.py b/mypyc/test/test_run.py index 37de192a92913..112074047292c 100644 --- a/mypyc/test/test_run.py +++ b/mypyc/test/test_run.py @@ -315,6 +315,7 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) -> # TODO: testDecorators1 hangs on 3.12, remove this once fixed proc.wait(timeout=30) output = proc.communicate()[0].decode("utf8") + output = output.replace(f' File "{os.getcwd()}{os.sep}', ' File "') outlines = output.splitlines() if testcase.config.getoption("--mypyc-showc"):