File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -310,16 +310,16 @@ def test_mathtext_fallback_valid():
310310 mpl .rcParams ['mathtext.fallback' ] = fallback
311311
312312
313- @pytest .mark .xfail
314313def test_mathtext_fallback_invalid ():
315314 for fallback in ['abc' , '' ]:
316- mpl .rcParams ['mathtext.fallback' ] = fallback
315+ with pytest .raises (ValueError , match = "not a valid fallback font name" ):
316+ mpl .rcParams ['mathtext.fallback' ] = fallback
317317
318318
319- @pytest .mark .xfail
320319def test_mathtext_fallback_to_cm_invalid ():
321320 for fallback in [True , False ]:
322- mpl .rcParams ['mathtext.fallback_to_cm' ] = fallback
321+ with pytest .warns (_api .MatplotlibDeprecationWarning ):
322+ mpl .rcParams ['mathtext.fallback_to_cm' ] = fallback
323323
324324
325325@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments