Package list python-procrunner / 6df1468
Don't call Python2 from Python3 Markus Gerstel 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5757 sentinel_value = "sentinel"
5858 tmpdir.join("tempfile").write(sentinel_value)
5959 tmpdir.join("reader.py").write("print(open('tempfile').read())")
60 command = ["python", tmpdir.join("reader.py")]
60 command = [sys.executable, tmpdir.join("reader.py")]
6161 result = procrunner.run(command, working_directory=tmpdir)
6262 assert result["exitcode"] == 0
6363 assert not result["stderr"]
64 assert sentinel_value == result["stdout"].strip()
64 assert sentinel_value == result["stdout"].strip().decode()