From 7c6d294c2da30956e39f1c06a8d95416932fc830 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Tue, 17 Mar 2026 15:27:34 +0100 Subject: [PATCH] discover lib-rt source more flexibly --- mypyc/test/test_external.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mypyc/test/test_external.py b/mypyc/test/test_external.py index a416cf2ee1300..add99dfe15027 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()