Skip to content

Commit

Permalink
unlink issue sometimes also for temp.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Dec 28, 2023
1 parent 85c6a38 commit b29c2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/coreneuron/test_nmodlrandom_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def chk_nmodl(txt, program="nocmodl", rcode=False):
result = run([program, "temp.mod"])
ret = (result.returncode == 0) == rcode
if ret:
pathlib.Path.unlink("temp.mod")
pathlib.Path.unlink("temp.mod", missing_ok=True)
pathlib.Path.unlink("temp.cpp", missing_ok=True)
else:
print("chk_nmodl ", program, " return code ", result.returncode)
Expand Down

0 comments on commit b29c2b8

Please sign in to comment.