Skip to content
Snippets Groups Projects
Commit 86a1b6da authored by Daniel Skýpala's avatar Daniel Skýpala
Browse files

Test: Actually close files after yourself

parent 0e57a1d6
No related branches found
No related tags found
No related merge requests found
......@@ -21,9 +21,10 @@ def test_task_commit(task_path, commit, workdir="_test"):
f.write(str(int(start_time)))
def run_pisek(args, output):
with open(os.path.join(outdir, output), "w") as out:
return subprocess.run(
["pisek"] + args,
stdout=open(os.path.join(outdir, output), "w"),
stdout=out,
stderr=subprocess.STDOUT,
text=True,
cwd=os.path.join(config.REPO_DIR, workdir, task_path),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment