@@ -203,7 +203,8 @@ class TestPlotNumlike(object):
203203 @pytest .mark .parametrize ("ndata" , numlike_data , ids = numlike_ids )
204204 def test_plot_numlike (self , ax , plotter , ndata ):
205205 counts = np .array ([4 , 6 , 5 ])
206- plotter (ax , ndata , counts )
206+ with pytest .warns (UserWarning , match = 'using category units to plot' ):
207+ plotter (ax , ndata , counts )
207208 axis_test (ax .xaxis , ndata )
208209
209210
@@ -261,12 +262,14 @@ def test_update_plot(self, ax, plotter):
261262
262263 PLOT_BROKEN_IDS = ["scatter" , "plot" , "bar" ]
263264
265+ @pytest .mark .filterwarnings ('ignore::UserWarning' )
264266 @pytest .mark .parametrize ("plotter" , PLOT_BROKEN_LIST , ids = PLOT_BROKEN_IDS )
265267 @pytest .mark .parametrize ("xdata" , fvalues , ids = fids )
266268 def test_mixed_type_exception (self , ax , plotter , xdata ):
267269 with pytest .raises (TypeError ):
268270 plotter (ax , xdata , [1 , 2 ])
269271
272+ @pytest .mark .filterwarnings ('ignore::UserWarning' )
270273 @pytest .mark .parametrize ("plotter" , PLOT_BROKEN_LIST , ids = PLOT_BROKEN_IDS )
271274 @pytest .mark .parametrize ("xdata" , fvalues , ids = fids )
272275 def test_mixed_type_update_exception (self , ax , plotter , xdata ):
0 commit comments