Skip to content

Commit d1c615a

Browse files
committed
Avoid interactive backend when using run_tests.sh locally
Signed-off-by: Sebastian Berg <sebastianb@nvidia.com>
1 parent 99b99d6 commit d1c615a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cuda_bindings/tests/test_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def test_example(example):
2020

2121
env = os.environ.copy()
2222
env["CUDA_BINDINGS_SKIP_EXAMPLE"] = "100"
23+
env["MPLBACKEND"] = "Agg" # avoid plt.show() from blocking
2324

2425
process = subprocess.run([sys.executable, example], capture_output=True, env=env) # noqa: S603
2526
# returncode is a special value used in the examples to indicate that system requirements are not met.

0 commit comments

Comments
 (0)