@@ -42,7 +42,7 @@ def test_fetch_various_timestamps(conn_cnx):
4242 except OSError :
4343 ts = ZERO_EPOCH + timedelta (seconds = float (et ))
4444 if pytz .utc != tzinfo :
45- ts += tzinfo .utcoffset (ts , is_dst = False )
45+ ts += tzinfo .utcoffset (ts )
4646 ts = ts .replace (tzinfo = tzinfo )
4747 data .append ({
4848 'scale' : 0 ,
@@ -60,7 +60,7 @@ def test_fetch_various_timestamps(conn_cnx):
6060 except OSError :
6161 ts0 = ZERO_EPOCH + timedelta (seconds = float (et ))
6262 if pytz .utc != tzinfo :
63- ts0 += tzinfo .utcoffset (ts0 , is_dst = False )
63+ ts0 += tzinfo .utcoffset (ts0 )
6464 ts0 = ts0 .replace (tzinfo = tzinfo )
6565 ts0_str = ts0 .strftime (
6666 '%Y-%m-%d %H:%M:%S.{ff}{tz}' .format (
@@ -76,7 +76,7 @@ def test_fetch_various_timestamps(conn_cnx):
7676 # WIP. this test work in edge case
7777 tzinfo = pytz .timezone (PST_TZ )
7878 ts0 = datetime .fromtimestamp (float (et ))
79- ts0 = pytz .utc .localize (ts0 , is_dst = False ).astimezone (tzinfo )
79+ ts0 = pytz .utc .localize (ts0 ).astimezone (tzinfo )
8080 ts0_str = ts0 .strftime ('%Y-%m-%d %H:%M:%S' )
8181 ts1 = ts0
8282 data .append ({
@@ -87,8 +87,7 @@ def test_fetch_various_timestamps(conn_cnx):
8787 })
8888 for idx in range (len (fractions )):
8989 ts0 = datetime .fromtimestamp (float (et ))
90- ts0 = pytz .utc .localize (ts0 , is_dst = False ).astimezone (
91- tzinfo )
90+ ts0 = pytz .utc .localize (ts0 ).astimezone (tzinfo )
9291 ts0_str = ts0 .strftime (
9392 '%Y-%m-%d %H:%M:%S.{ff}' .format (
9493 ff = fractions [:idx + 1 ]
0 commit comments