@@ -58,8 +58,8 @@ def test_to_float_timestamp_absolute_aware(self, timezone):
5858 # we're parametrizing this with two different UTC offsets to exclude the possibility
5959 # of an xpass when the test is run in a timezone with the same UTC offset
6060 datetime = dtm .datetime (2019 , 11 , 11 , 0 , 26 , 16 , 10 ** 5 , tzinfo = timezone )
61- assert (helpers .to_float_timestamp (datetime ) ==
62- 1573431976.1 - timezone .utcoffset (None ).total_seconds ())
61+ assert (helpers .to_float_timestamp (datetime )
62+ == 1573431976.1 - timezone .utcoffset (None ).total_seconds ())
6363
6464 def test_to_float_timestamp_absolute_no_reference (self ):
6565 """A reference timestamp is only relevant for relative time specifications"""
@@ -94,8 +94,8 @@ def test_to_float_timestamp_time_of_day_timezone(self, timezone):
9494 # first test that naive time is assumed to be utc:
9595 assert helpers .to_float_timestamp (time_of_day , ref_t ) == pytest .approx (ref_t )
9696 # test that by setting the timezone the timestamp changes accordingly:
97- assert (helpers .to_float_timestamp (time_of_day .replace (tzinfo = timezone ), ref_t ) ==
98- pytest .approx (ref_t + (- utc_offset .total_seconds () % (24 * 60 * 60 ))))
97+ assert (helpers .to_float_timestamp (time_of_day .replace (tzinfo = timezone ), ref_t )
98+ == pytest .approx (ref_t + (- utc_offset .total_seconds () % (24 * 60 * 60 ))))
9999
100100 @pytest .mark .parametrize ('time_spec' , RELATIVE_TIME_SPECS , ids = str )
101101 def test_to_float_timestamp_default_reference (self , time_spec ):
0 commit comments