@@ -670,7 +670,8 @@ def test_single_date():
670
670
data1 = [- 65.54 ]
671
671
672
672
fig , ax = plt .subplots (2 , 1 )
673
- ax [0 ].plot_date (time1 + dt , data1 , 'o' , color = 'r' )
673
+ with pytest .warns (PendingDeprecationWarning ):
674
+ ax [0 ].plot_date (time1 + dt , data1 , 'o' , color = 'r' )
674
675
ax [1 ].plot (time1 , data1 , 'o' , color = 'r' )
675
676
676
677
@@ -5830,11 +5831,13 @@ def test_date_timezone_x():
5830
5831
# Same Timezone
5831
5832
plt .figure (figsize = (20 , 12 ))
5832
5833
plt .subplot (2 , 1 , 1 )
5833
- plt .plot_date (time_index , [3 ] * 3 , tz = 'Canada/Eastern' )
5834
+ with pytest .warns (PendingDeprecationWarning ):
5835
+ plt .plot_date (time_index , [3 ] * 3 , tz = 'Canada/Eastern' )
5834
5836
5835
5837
# Different Timezone
5836
5838
plt .subplot (2 , 1 , 2 )
5837
- plt .plot_date (time_index , [3 ] * 3 , tz = 'UTC' )
5839
+ with pytest .warns (PendingDeprecationWarning ):
5840
+ plt .plot_date (time_index , [3 ] * 3 , tz = 'UTC' )
5838
5841
5839
5842
5840
5843
@image_comparison (['date_timezone_y.png' ])
@@ -5847,12 +5850,14 @@ def test_date_timezone_y():
5847
5850
# Same Timezone
5848
5851
plt .figure (figsize = (20 , 12 ))
5849
5852
plt .subplot (2 , 1 , 1 )
5850
- plt .plot_date ([3 ] * 3 ,
5851
- time_index , tz = 'Canada/Eastern' , xdate = False , ydate = True )
5853
+ with pytest .warns (PendingDeprecationWarning ):
5854
+ plt .plot_date ([3 ] * 3 ,
5855
+ time_index , tz = 'Canada/Eastern' , xdate = False , ydate = True )
5852
5856
5853
5857
# Different Timezone
5854
5858
plt .subplot (2 , 1 , 2 )
5855
- plt .plot_date ([3 ] * 3 , time_index , tz = 'UTC' , xdate = False , ydate = True )
5859
+ with pytest .warns (PendingDeprecationWarning ):
5860
+ plt .plot_date ([3 ] * 3 , time_index , tz = 'UTC' , xdate = False , ydate = True )
5856
5861
5857
5862
5858
5863
@image_comparison (['date_timezone_x_and_y.png' ], tol = 1.0 )
@@ -5865,11 +5870,13 @@ def test_date_timezone_x_and_y():
5865
5870
# Same Timezone
5866
5871
plt .figure (figsize = (20 , 12 ))
5867
5872
plt .subplot (2 , 1 , 1 )
5868
- plt .plot_date (time_index , time_index , tz = 'UTC' , ydate = True )
5873
+ with pytest .warns (PendingDeprecationWarning ):
5874
+ plt .plot_date (time_index , time_index , tz = 'UTC' , ydate = True )
5869
5875
5870
5876
# Different Timezone
5871
5877
plt .subplot (2 , 1 , 2 )
5872
- plt .plot_date (time_index , time_index , tz = 'US/Eastern' , ydate = True )
5878
+ with pytest .warns (PendingDeprecationWarning ):
5879
+ plt .plot_date (time_index , time_index , tz = 'US/Eastern' , ydate = True )
5873
5880
5874
5881
5875
5882
@image_comparison (['axisbelow.png' ], remove_text = True )
0 commit comments