diff --git a/mypyc/test/test_external.py b/mypyc/test/test_external.py index a416cf2ee130..add99dfe1502 100644 --- a/mypyc/test/test_external.py +++ b/mypyc/test/test_external.py @@ -8,7 +8,7 @@ import tempfile import unittest -base_dir = os.path.join(os.path.dirname(__file__), "..", "..") +from .config import PREFIX class TestExternal(unittest.TestCase): @@ -37,7 +37,7 @@ def test_c_unit_test(self) -> None: "--run-capi-tests", ], env=env, - cwd=os.path.join(base_dir, "mypyc", "lib-rt"), + cwd=os.path.join(PREFIX, "mypyc", "lib-rt"), ) # Run C unit tests. env = os.environ.copy()