@@ -163,14 +163,18 @@ def baseline_images(request, fontset, index):
163163 return ['%s_%s_%02d' % (request .param , fontset , index )]
164164
165165
166+ # In the following two tests, use recwarn to suppress warnings regarding the
167+ # deprecation of \stackrel and \mathcircled.
168+
169+
166170@pytest .mark .parametrize ('index, test' , enumerate (math_tests ),
167171 ids = [str (index ) for index in range (len (math_tests ))])
168172@pytest .mark .parametrize ('fontset' ,
169173 ['cm' , 'stix' , 'stixsans' , 'dejavusans' ,
170174 'dejavuserif' ])
171175@pytest .mark .parametrize ('baseline_images' , ['mathtext' ], indirect = True )
172176@image_comparison (baseline_images = None )
173- def test_mathtext_rendering (baseline_images , fontset , index , test ):
177+ def test_mathtext_rendering (baseline_images , fontset , index , test , recwarn ):
174178 matplotlib .rcParams ['mathtext.fontset' ] = fontset
175179 fig = plt .figure (figsize = (5.25 , 0.75 ))
176180 fig .text (0.5 , 0.5 , test ,
@@ -184,7 +188,7 @@ def test_mathtext_rendering(baseline_images, fontset, index, test):
184188 'dejavuserif' ])
185189@pytest .mark .parametrize ('baseline_images' , ['mathfont' ], indirect = True )
186190@image_comparison (baseline_images = None , extensions = ['png' ])
187- def test_mathfont_rendering (baseline_images , fontset , index , test ):
191+ def test_mathfont_rendering (baseline_images , fontset , index , test , recwarn ):
188192 matplotlib .rcParams ['mathtext.fontset' ] = fontset
189193 fig = plt .figure (figsize = (5.25 , 0.75 ))
190194 fig .text (0.5 , 0.5 , test ,
0 commit comments