Skip to content

Commit 04e6c4d

Browse files
committed
Remove precompiled executable in test_compile_with_includes.
1 parent 87f0747 commit 04e6c4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ def test_compile_with_includes(
253253
) -> None:
254254
getmtime = os.path.getmtime
255255
stan_file = os.path.join(DATAFILES_PATH, stan_file)
256+
exe_file = os.path.splitext(stan_file)[0] + EXTENSION
257+
if os.path.isfile(exe_file):
258+
os.unlink(exe_file)
256259
include_paths = [
257260
os.path.join(DATAFILES_PATH, path) for path in include_paths
258261
]

0 commit comments

Comments
 (0)