@@ -2610,28 +2610,24 @@ def test_boxplot_no_weird_whisker():
26102610 ax1 .xaxis .grid (False )
26112611
26122612
2613- def test_boxplot_bad_medians_1 ():
2613+ def test_boxplot_bad_medians ():
26142614 x = np .linspace (- 7 , 7 , 140 )
26152615 x = np .hstack ([- 25 , x , 25 ])
26162616 fig , ax = plt .subplots ()
26172617 with pytest .raises (ValueError ):
26182618 ax .boxplot (x , usermedians = [1 , 2 ])
2619-
2620-
2621- def test_boxplot_bad_medians_2 ():
2622- x = np .linspace (- 7 , 7 , 140 )
2623- x = np .hstack ([- 25 , x , 25 ])
2624- fig , ax = plt .subplots ()
26252619 with pytest .raises (ValueError ):
26262620 ax .boxplot ([x , x ], usermedians = [[1 , 2 ], [1 , 2 ]])
26272621
26282622
2629- def test_boxplot_bad_ci_1 ():
2623+ def test_boxplot_bad_ci ():
26302624 x = np .linspace (- 7 , 7 , 140 )
26312625 x = np .hstack ([- 25 , x , 25 ])
26322626 fig , ax = plt .subplots ()
26332627 with pytest .raises (ValueError ):
26342628 ax .boxplot ([x , x ], conf_intervals = [[1 , 2 ]])
2629+ with pytest .raises (ValueError ):
2630+ ax .boxplot ([x , x ], conf_intervals = [[1 , 2 ], [1 ]])
26352631
26362632
26372633def test_boxplot_zorder ():
@@ -2641,14 +2637,6 @@ def test_boxplot_zorder():
26412637 assert ax .boxplot (x , zorder = 10 )['boxes' ][0 ].get_zorder () == 10
26422638
26432639
2644- def test_boxplot_bad_ci_2 ():
2645- x = np .linspace (- 7 , 7 , 140 )
2646- x = np .hstack ([- 25 , x , 25 ])
2647- fig , ax = plt .subplots ()
2648- with pytest .raises (ValueError ):
2649- ax .boxplot ([x , x ], conf_intervals = [[1 , 2 ], [1 ]])
2650-
2651-
26522640def test_boxplot_marker_behavior ():
26532641 plt .rcParams ['lines.marker' ] = 's'
26542642 plt .rcParams ['boxplot.flierprops.marker' ] = 'o'
0 commit comments