Package list python-procrunner / 95dab84
Unset PYTHONHASHSEED for python subprocess in test Markus Gerstel 2 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5858 tmpdir.join("tempfile").write(sentinel_value)
5959 tmpdir.join("reader.py").write("print(open('tempfile').read())")
6060 command = [sys.executable, tmpdir.join("reader.py")]
61 result = procrunner.run(command, working_directory=tmpdir)
61 result = procrunner.run(
62 command,
63 environment_override={"PYTHONHASHSEED": "random"},
64 working_directory=tmpdir,
65 )
6266 assert result["exitcode"] == 0
6367 assert not result["stderr"]
6468 assert sentinel_value == result["stdout"].strip().decode()