8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6279ac commit 8271e61Copy full SHA for 8271e61
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