Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f2ba37

Browse files
authored
Merge pull request #20884 from QuLogic/headless-env
Ensure full environment is passed to headless test.
2 parents 6d394df + 65dcc0e commit 0f2ba37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def test_lazy_linux_headless():
301301
302302
"""
303303
proc = subprocess.run([sys.executable, "-c", test_script],
304-
env={"MPLBACKEND": ""})
304+
env={**os.environ, "MPLBACKEND": ""})
305305
if proc.returncode:
306306
pytest.fail("The subprocess returned with non-zero exit status "
307307
f"{proc.returncode}.")

0 commit comments

Comments
 (0)