Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 4e4410d + 8c48b70 commit 3c1d28cCopy full SHA for 3c1d28c
1 file changed
lib/matplotlib/tests/test_mathtext.py
@@ -310,16 +310,16 @@ def test_mathtext_fallback_valid():
310
mpl.rcParams['mathtext.fallback'] = fallback
311
312
313
-@pytest.mark.xfail
314
def test_mathtext_fallback_invalid():
315
for fallback in ['abc', '']:
316
- mpl.rcParams['mathtext.fallback'] = fallback
+ with pytest.raises(ValueError, match="not a valid fallback font name"):
+ mpl.rcParams['mathtext.fallback'] = fallback
317
318
319
320
def test_mathtext_fallback_to_cm_invalid():
321
for fallback in [True, False]:
322
- mpl.rcParams['mathtext.fallback_to_cm'] = fallback
+ with pytest.warns(_api.MatplotlibDeprecationWarning):
+ mpl.rcParams['mathtext.fallback_to_cm'] = fallback
323
324
325
@pytest.mark.parametrize(
0 commit comments