Skip to content

Commit 6b4857e

Browse files
committed
update
1 parent 1bfb489 commit 6b4857e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

code/tests/test_code_in_scripts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def run_py(path):
2121
f.write('\n'.join(content))
2222

2323
args = ["python", py_path]
24-
p = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
24+
p = subprocess.check_output(args,
25+
stdout=subprocess.PIPE,
26+
stderr=subprocess.PIPE)
2527
print(p.stdout)
2628
print(p.stderr)
2729

0 commit comments

Comments
 (0)