Skip to content

Commit 76a55d0

Browse files
committed
Fix mypyc wheel tests
1 parent 106f714 commit 76a55d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mypyc/test/test_run.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
assert_test_output,
3333
fudge_dir_mtimes,
3434
show_c,
35+
test_data_prefix,
3536
use_custom_builtins,
3637
)
3738

@@ -291,9 +292,7 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) ->
291292
# No driver.py provided by test case. Use the default one
292293
# (mypyc/test-data/driver/driver.py) that calls each
293294
# function named test_*.
294-
default_driver = os.path.join(
295-
os.path.dirname(__file__), "..", "test-data", "driver", "driver.py"
296-
)
295+
default_driver = os.path.join(test_data_prefix, "driver", "driver.py")
297296
shutil.copy(default_driver, driver_path)
298297
env = os.environ.copy()
299298
env["MYPYC_RUN_BENCH"] = "1" if bench else "0"

0 commit comments

Comments
 (0)