Skip to content

Commit

Permalink
Merge pull request #20884 from QuLogic/headless-env
Browse files Browse the repository at this point in the history
Ensure full environment is passed to headless test.
  • Loading branch information
timhoffm committed Aug 24, 2021
2 parents 6d394df + 65dcc0e commit 0f2ba37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_backends_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def test_lazy_linux_headless():
"""
proc = subprocess.run([sys.executable, "-c", test_script],
env={"MPLBACKEND": ""})
env={**os.environ, "MPLBACKEND": ""})
if proc.returncode:
pytest.fail("The subprocess returned with non-zero exit status "
f"{proc.returncode}.")

0 comments on commit 0f2ba37

Please sign in to comment.