Skip to content

Commit f5d6058

Browse files
authored
Allow --mypy-testing-base to be relative by resolving execution_path before cd (#168)
1 parent 962e6db commit f5d6058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_mypy_plugins/item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def runtest(self) -> None:
406406
):
407407
self.execute_extension_hook()
408408

409-
execution_path = Path(temp_dir.name)
409+
execution_path = Path(temp_dir.name).absolute()
410410
with utils.cd(execution_path):
411411
mypy_executor = MypyExecutor(
412412
same_process=self.same_process,

0 commit comments

Comments
 (0)