Skip to content

Commit

Permalink
Fix environment
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Jul 25, 2024
1 parent 4da1c00 commit b32a08f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/test_examples_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import subprocess
import glob
import sys
import os


examples_dir = abspath(dirname(__file__))
Expand All @@ -22,7 +23,7 @@ def test_example_runs(example_file, tmpdir, monkeypatch):
subprocess.run(
[sys.executable, example_file, "--running-tests"],
check=True,
env={"PYOP2_CFLAGS='-O0'"}
env=os.environ | {"PYOP2_CFLAGS": "-O0"}
)


Expand All @@ -33,5 +34,5 @@ def test_example_runs_parallel(example_file, tmpdir, monkeypatch):
subprocess.run(
["mpiexec", "-n", "4", sys.executable, example_file, "--running-tests"],
check=True,
env={"PYOP2_CFLAGS='-O0'"}
env=os.environ | {"PYOP2_CFLAGS": "-O0"}
)

0 comments on commit b32a08f

Please sign in to comment.