Skip to content

Commit fa3779c

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypyc/test/test_run.py

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

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

0 commit comments

Comments
 (0)