diff --git a/mypyc/test/test_external.py b/mypyc/test/test_external.py index 6a70fb8906fe..0f3cf0525740 100644 --- a/mypyc/test/test_external.py +++ b/mypyc/test/test_external.py @@ -12,7 +12,8 @@ from mypyc.build import get_cflags, include_dir -base_dir = os.path.join(os.path.dirname(__file__), "..", "..") +from .config import PREFIX + EXCLUDED_LIB_RT_COMPILE_FILES = ["static_data.c"] @@ -88,7 +89,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()