From df12ded4e3f51d77574c18dc08eb5e5fe7454f4d Mon Sep 17 00:00:00 2001 From: Yosshi999 Date: Fri, 4 Jul 2025 03:19:01 +0900 Subject: [PATCH] Allow --mypy-testing-base to be relative by resolving execution_path before cd --- pytest_mypy_plugins/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_mypy_plugins/item.py b/pytest_mypy_plugins/item.py index c5d3a89..cb34552 100644 --- a/pytest_mypy_plugins/item.py +++ b/pytest_mypy_plugins/item.py @@ -406,7 +406,7 @@ def runtest(self) -> None: ): self.execute_extension_hook() - execution_path = Path(temp_dir.name) + execution_path = Path(temp_dir.name).absolute() with utils.cd(execution_path): mypy_executor = MypyExecutor( same_process=self.same_process,