8000 Merge pull request #20886 from meeseeksmachine/auto-backport-of-pr-20… · matplotlib/matplotlib@eb38299 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb38299

Browse files
authored
Merge pull request #20886 from meeseeksmachine/auto-backport-of-pr-20884-on-v3.5.x
Backport PR #20884 on branch v3.5.x (Ensure full environment is passed to headless test.)
2 parents a2a7291 + 4bac8dc commit eb38299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
0