@@ -717,6 +717,7 @@ def test_pcolor_datetime_axis():
717717 label .set_rotation (30 )
718718
719719
720+ @cleanup
720721def test_pcolorargs ():
721722 n = 12
722723 x = np .linspace (- 1.5 , 1.5 , n )
@@ -1293,6 +1294,8 @@ def test_bxp_custompositions():
12931294 ax .set_yscale ('log' )
12941295 ax .bxp (logstats , positions = [1 , 5 , 6 , 7 ])
12951296
1297+
1298+ @cleanup
12961299def test_bxp_bad_widths ():
12971300 np .random .seed (937 )
12981301 logstats = matplotlib .cbook .boxplot_stats (
@@ -1303,6 +1306,8 @@ def test_bxp_bad_widths():
13031306 ax .set_yscale ('log' )
13041307 assert_raises (ValueError , ax .bxp , logstats , widths = [1 ])
13051308
1309+
1310+ @cleanup
13061311def test_bxp_bad_positions ():
13071312 np .random .seed (937 )
13081313 logstats = matplotlib .cbook .boxplot_stats (
@@ -1359,25 +1364,33 @@ def test_boxplot_no_weird_whisker():
13591364 ax1 .yaxis .grid (False , which = 'minor' )
13601365 ax1 .xaxis .grid (False )
13611366
1367+
1368+ @cleanup
13621369def test_boxplot_bad_medians_1 ():
13631370 x = np .linspace (- 7 , 7 , 140 )
13641371 x = np .hstack ([- 25 , x , 25 ])
13651372 fig , ax = plt .subplots ()
13661373 assert_raises (ValueError , ax .boxplot , x , usermedians = [1 , 2 ])
13671374
1375+
1376+ @cleanup
13681377def test_boxplot_bad_medians_1 ():
13691378 x = np .linspace (- 7 , 7 , 140 )
13701379 x = np .hstack ([- 25 , x , 25 ])
13711380 fig , ax = plt .subplots ()
13721381 assert_raises (ValueError , ax .boxplot , [x , x ], usermedians = [[1 , 2 ],[1 , 2 ]])
13731382
1383+
1384+ @cleanup
13741385def test_boxplot_bad_ci_1 ():
13751386 x = np .linspace (- 7 , 7 , 140 )
13761387 x = np .hstack ([- 25 , x , 25 ])
13771388 fig , ax = plt .subplots ()
13781389 assert_raises (ValueError , ax .boxplot , [x , x ],
13791390 conf_intervals = [[1 , 2 ]])
13801391
1392+
1393+ @cleanup
13811394def test_boxplot_bad_ci_2 ():
13821395 x = np .linspace (- 7 , 7 , 140 )
13831396 x = np .hstack ([- 25 , x , 25 ])
@@ -2782,6 +2795,7 @@ def test_relim_visible_only():
27822795 assert ax .get_ylim () == y1
27832796
27842797
2798+ @cleanup
27852799def test_text_labelsize ():
27862800 """
27872801 tests for issue #1172
0 commit comments