Skip to content

Commit 7c6d294

Browse files
committed
discover lib-rt source more flexibly
1 parent 0352178 commit 7c6d294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/test/test_external.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import tempfile
99
import unittest
1010

11-
base_dir = os.path.join(os.path.dirname(__file__), "..", "..")
11+
from .config import PREFIX
1212

1313

1414
class TestExternal(unittest.TestCase):
@@ -37,7 +37,7 @@ def test_c_unit_test(self) -> None:
3737
"--run-capi-tests",
3838
],
3939
env=env,
40-
cwd=os.path.join(base_dir, "mypyc", "lib-rt"),
40+
cwd=os.path.join(PREFIX, "mypyc", "lib-rt"),
4141
)
4242
# Run C unit tests.
4343
env = os.environ.copy()

0 commit comments

Comments
 (0)