@@ -725,7 +725,6 @@ def test_polycollection_joinstyle():
725
725
ax .set_ybound (0 , 3 )
726
726
727
727
728
- @raises (ValueError )
729
728
def test_fill_between_2d_x_input ():
730
729
x = np .zeros ((2 , 2 ))
731
730
y1 = 3
@@ -734,10 +733,10 @@ def test_fill_between_2d_x_input():
734
733
fig = plt .figure ()
735
734
ax = fig .add_subplot (211 )
736
735
ax .plot (x , y1 , x , y2 , color = 'black' )
737
- ax .fill_between (x , y1 , y2 )
736
+ with pytest .raises (ValueError ):
737
+ ax .fill_between (x , y1 , y2 )
738
738
739
739
740
- @raises (ValueError )
741
740
def test_fill_between_2d_y1_input ():
742
741
x = np .arange (0.0 , 2 , 0.02 )
743
742
y1 = np .zeros ((2 , 2 ))
@@ -746,10 +745,10 @@ def test_fill_between_2d_y1_input():
746
745
fig = plt .figure ()
747
746
ax = fig .add_subplot (211 )
748
747
ax .plot (x , y1 , x , y2 , color = 'black' )
749
- ax .fill_between (x , y1 , y2 )
748
+ with pytest .raises (ValueError ):
749
+ ax .fill_between (x , y1 , y2 )
750
750
751
751
752
- @raises (ValueError )
753
752
def test_fill_between_2d_y2_input ():
754
753
x = np .arange (0.0 , 2 , 0.02 )
755
754
y1 = 3
@@ -758,7 +757,8 @@ def test_fill_between_2d_y2_input():
758
757
fig = plt .figure ()
759
758
ax = fig .add_subplot (211 )
760
759
ax .plot (x , y1 , x , y2 , color = 'black' )
761
- ax .fill_between (x , y1 , y2 )
760
+ with pytest .raises (ValueError ):
761
+ ax .fill_between (x , y1 , y2 )
762
762
763
763
764
764
@image_comparison (baseline_images = ['fill_between_interpolate' ],
@@ -4837,7 +4837,6 @@ def test_tick_param_label_rotation():
4837
4837
assert text .get_rotation () == 90
4838
4838
4839
4839
4840
- @raises (ValueError )
4841
4840
def test_fill_betweenx_2d_y_input ():
4842
4841
y = np .zeros ((2 , 2 ))
4843
4842
x1 = 3
@@ -4846,10 +4845,10 @@ def test_fill_betweenx_2d_y_input():
4846
4845
fig = plt .figure ()
4847
4846
ax = fig .add_subplot (211 )
4848
4847
ax .plot (y , x1 , y , x2 , color = 'black' )
4849
- ax .fill_betweenx (y , x1 , x2 )
4848
+ with pytest .raises (ValueError ):
4849
+ ax .fill_betweenx (y , x1 , x2 )
4850
4850
4851
4851
4852
- @raises (ValueError )
4853
4852
def test_fill_betweenx_2d_x1_input ():
4854
4853
y = np .arange (0.0 , 2 , 0.02 )
4855
4854
x1 = np .zeros ((2 , 2 ))
@@ -4858,10 +4857,10 @@ def test_fill_betweenx_2d_x1_input():
4858
4857
fig = plt .figure ()
4859
4858
ax = fig .add_subplot (211 )
4860
4859
ax .plot (y , x1 , y , x2 , color = 'black' )
4861
- ax .fill_betweenx (y , x1 , x2 )
4860
+ with pytest .raises (ValueError ):
4861
+ ax .fill_betweenx (y , x1 , x2 )
4862
4862
4863
4863
4864
- @raises (ValueError )
4865
4864
def test_fill_betweenx_2d_x2_input ():
4866
4865
y = np .arange (0.0 , 2 , 0.02 )
4867
4866
x1 = 3
@@ -4870,7 +4869,8 @@ def test_fill_betweenx_2d_x2_input():
4870
4869
fig = plt .figure ()
4871
4870
ax = fig .add_subplot (211 )
4872
4871
ax .plot (y , x1 , y , x2 , color = 'black' )
4873
- ax .fill_betweenx (y , x1 , x2 )
4872
+ with pytest .raises (ValueError ):
4873
+ ax .fill_betweenx (y , x1 , x2 )
4874
4874
4875
4875
4876
4876
@cleanup (style = 'default' )
0 commit comments