Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,7 @@ def test52_str_fallback_without_ostream_insertion(self):
output identifies which failure happened.
"""

import os
import subprocess
import sys

Expand All @@ -1658,8 +1659,15 @@ def test52_str_fallback_without_ostream_insertion(self):
print(repr(str(cppjit.gbl.StrFallback.Bare())))
"""

# A build system can put cppjit on sys.path without PYTHONPATH (bazel
# gives the runner a bootstrap instead), so hand the child this
# process's own path.
env = dict(os.environ)
env["PYTHONPATH"] = os.pathsep.join(p for p in sys.path if p)

popen = subprocess.Popen(
[sys.executable, "-c", repro],
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
Expand Down
Loading