Skip to content
Snippets Groups Projects
Commit 1c09a184 authored by Rosen Matev's avatar Rosen Matev ☀️
Browse files

Make test validators python 3 compatible

parent 8e9a66af
No related branches found
No related tags found
No related merge requests found
Pipeline #2776115 passed with stage
in 18 seconds
......@@ -24,7 +24,7 @@ Check that a python-based DDG4 script works.
import subprocess
try:
output = subprocess.check_output(["rootls", "-t", "ddg4_vp.root:*"])
output = subprocess.check_output(["rootls", "-t", "ddg4_vp.root:*"], text=True)
except subprcess.CalledProcessError:
causes.append("failed to list output file")
......
......@@ -28,7 +28,7 @@ Analyse the ROOT output of a DDG4 script.
import subprocess
try:
output = subprocess.check_output(["rootls", "-t", "ddg4_vp_histos.root:*"])
output = subprocess.check_output(["rootls", "-t", "ddg4_vp_histos.root:*"], text=True)
except subprcess.CalledProcessError:
causes.append("failed to list histogram output file")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment