Skip to content

Commit 9f83618

Browse files
committedFeb 27, 2020
Fix code to not use capture_output
capture_output was only added in python 3.7, which is too new for some of the environments we are running in.
1 parent 3aec326 commit 9f83618

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎run-tests.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ def main(args):
3131
if not os.path.exists(binary):
3232
download_turkey(binary)
3333

34-
p = subprocess.run([binary, '--version'], capture_output=True, universal_newlines=True, shell=False)
34+
p = subprocess.run([binary, '--version'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, shell=False)
3535
print(p.stdout)
36-
print(p.stderr)
3736
if p.returncode != 0:
3837
return returncode
3938

@@ -47,9 +46,8 @@ def main(args):
4746

4847
print('Running: ' + str(test_args))
4948

50-
p = subprocess.run(test_args, capture_output=True, universal_newlines=True, shell=False)
49+
p = subprocess.run(test_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, shell=False)
5150
print(p.stdout)
52-
print(p.stderr)
5351
if p.returncode != 0:
5452
return p.returncode
5553

0 commit comments

Comments
 (0)
Please sign in to comment.