Skip to content

Commit 523c905

Browse files
cdce8phamdanal
andcommitted
Replace abs paths in tracebacks for win tests
Co-authored-by: Ali Hamdan <[email protected]>
1 parent 9d34088 commit 523c905

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypyc/test/test_run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) ->
314314
# TODO: testDecorators1 hangs on 3.12, remove this once fixed
315315
proc.wait(timeout=30)
316316
output = proc.communicate()[0].decode("utf8")
317+
output = output.replace(f' File "{os.getcwd()}{os.sep}', ' File "')
317318
outlines = output.splitlines()
318319

319320
if testcase.config.getoption("--mypyc-showc"):

0 commit comments

Comments
 (0)