We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d03d736 commit b797f29Copy full SHA for b797f29
lib/matplotlib/tests/test_backend_webagg.py
@@ -5,7 +5,9 @@
5
6
@pytest.mark.parametrize('backend', ['webagg', 'nbagg'])
7
def test_webagg_fallback(backend):
8
- test_code = ("import matplotlib.pyplot as plt; " +
+ test_code = ("import os;" +
9
+ f"os.environ['MPLBACKEND'] = {backend};" +
10
+ "import matplotlib.pyplot as plt; " +
11
"print(plt.get_backend());"
12
f"assert '{backend}' == plt.get_backend().lower();")
13
ret = subprocess.call(
0 commit comments