@@ -619,7 +619,8 @@ def test_single_date():
619
619
data1 = [- 65.54 ]
620
620
621
621
fig , ax = plt .subplots (2 , 1 )
622
- ax [0 ].plot_date (time1 + dt , data1 , 'o' , color = 'r' )
622
+ with pytest .warns (PendingDeprecationWarning ):
623
+ ax [0 ].plot_date (time1 + dt , data1 , 'o' , color = 'r' )
623
624
ax [1 ].plot (time1 , data1 , 'o' , color = 'r' )
624
625
625
626
@@ -5431,11 +5432,13 @@ def test_date_timezone_x():
5431
5432
# Same Timezone
5432
5433
plt .figure (figsize = (20 , 12 ))
5433
5434
plt .subplot (2 , 1 , 1 )
5434
- plt .plot_date (time_index , [3 ] * 3 , tz = 'Canada/Eastern' )
5435
+ with pytest .warns (PendingDeprecationWarning ):
5436
+ plt .plot_date (time_index , [3 ] * 3 , tz = 'Canada/Eastern' )
5435
5437
5436
5438
# Different Timezone
5437
5439
plt .subplot (2 , 1 , 2 )
5438
- plt .plot_date (time_index , [3 ] * 3 , tz = 'UTC' )
5440
+ with pytest .warns (PendingDeprecationWarning ):
5441
+ plt .plot_date (time_index , [3 ] * 3 , tz = 'UTC' )
5439
5442
5440
5443
5441
5444
@image_comparison (['date_timezone_y.png' ])
@@ -5448,12 +5451,14 @@ def test_date_timezone_y():
5448
5451
# Same Timezone
5449
5452
plt .figure (figsize = (20 , 12 ))
5450
5453
plt .subplot (2 , 1 , 1 )
5451
- plt .plot_date ([3 ] * 3 ,
5452
- time_index , tz = 'Canada/Eastern' , xdate = False , ydate = True )
5454
+ with pytest .warns (PendingDeprecationWarning ):
5455
+ plt .plot_date ([3 ] * 3 ,
5456
+ time_index , tz = 'Canada/Eastern' , xdate = False , ydate = True )
5453
5457
5454
5458
# Different Timezone
5455
5459
plt .subplot (2 , 1 , 2 )
5456
- plt .plot_date ([3 ] * 3 , time_index , tz = 'UTC' , xdate = False , ydate = True )
5460
+ with pytest .warns (PendingDeprecationWarning ):
5461
+ plt .plot_date ([3 ] * 3 , time_index , tz = 'UTC' , xdate = False , ydate = True )
5457
5462
5458
5463
5459
5464
@image_comparison (['date_timezone_x_and_y.png' ], tol = 1.0 )
@@ -5466,11 +5471,13 @@ def test_date_timezone_x_and_y():
5466
5471
# Same Timezone
5467
5472
plt .figure (figsize = (20 , 12 ))
5468
5473
plt .subplot (2 , 1 , 1 )
5469
- plt .plot_date (time_index , time_index , tz = 'UTC' , ydate = True )
5474
+ with pytest .warns (PendingDeprecationWarning ):
5475
+ plt .plot_date (time_index , time_index , tz = 'UTC' , ydate = True )
5470
5476
5471
5477
# Different Timezone
5472
5478
plt .subplot (2 , 1 , 2 )
5473
- plt .plot_date (time_index , time_index , tz = 'US/Eastern' , ydate = True )
5479
+ with pytest .warns (PendingDeprecationWarning ):
5480
+ plt .plot_date (time_index , time_index , tz = 'US/Eastern' , ydate = True )
5474
5481
5475
5482
5476
5483
@image_comparison (['axisbelow.png' ], remove_text = True )
0 commit comments