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

Skip to content

Commit 02ac55c

Browse files
authored
Merge pull request #15738 from meeseeksmachine/auto-backport-of-pr-15737-on-v3.2.x
Backport PR #15737 on branch v3.2.x (Fix env override in WebAgg backend test.)
2 parents 8d5defe + f77dcda commit 02ac55c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/matplotlib/tests/test_backend_webagg.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
def test_webagg_fallback(backend):
99
if backend == "nbagg":
1010
pytest.importorskip("IPython")
11-
env = {}
12-
if os.name == "nt":
13-
env = dict(os.environ)
14-
else:
15-
env = {"DISPLAY": ""}
11+
env = dict(os.environ)
12+
if os.name != "nt":
13+
env["DISPLAY"] = ""
1614

1715
env["MPLBACKEND"] = backend
1816

0 commit comments

Comments
 (0)