File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,14 @@ def test_location_tz(tz, tz_expected):
5454def  test_location_tz_update ():
5555    loc  =  Location (32.2 , - 111 , - 11 )
5656    assert  loc .tz  ==  'Etc/GMT+11' 
57-     assert  loc .pytz  ==  pytz .timezone ('Etc/GMT+11' )
57+     assert  loc .pytz  ==  pytz .timezone ('Etc/GMT+11' )  # Deprecated attribute. 
58+     assert  loc .zoneinfo  ==  zoneinfo .ZoneInfo ('Etc/GMT+11' )
5859
59-     # Updating tz updates pytz . 
60+     # Updating Location's  tz updates read-only time-zone attributes . 
6061    loc .tz  =  7 
6162    assert  loc .tz  ==  'Etc/GMT-7' 
62-     assert  loc .pytz  ==  pytz .timezone ('Etc/GMT-7' )
63+     assert  loc .pytz  ==  pytz .timezone ('Etc/GMT-7' )  # Deprecated attribute. 
64+     assert  loc .zoneinfo  ==  zoneinfo .ZoneInfo ('Etc/GMT-7' )
6365
6466
6567@pytest .mark .parametrize ( 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments