@@ -4678,44 +4678,25 @@ def tzname(self, dt): return self.tz
46784678
46794679 def test_subminute_offset_equality (self ):
46804680 t1 = self .theclass (12 , tzinfo = timezone .utc )
4681- t2 = self .theclass (
4682- 12 , 0 , 1 , tzinfo = timezone (timedelta (seconds = 1 ))
4683- )
4681+ t2 = self .theclass (12 , 0 , 1 , tzinfo = timezone (timedelta (seconds = 1 )))
46844682 self .assertEqual (t1 , t2 )
4685- t2 = self .theclass (
4686- 12 , 0 , 0 , 1 ,
4687- tzinfo = timezone (timedelta (microseconds = 1 )),
4688- )
4683+ t2 = self .theclass (12 , 0 , 0 , 1 , tzinfo = timezone (timedelta (microseconds = 1 )))
46894684 self .assertEqual (t1 , t2 )
4690- t2 = self .theclass (
4691- 11 , 59 , 59 , 999999 ,
4692- tzinfo = timezone (timedelta (microseconds = - 1 )),
4693- )
4685+ t2 = self .theclass (11 , 59 , 59 , 999999 , tzinfo = timezone (timedelta (microseconds = - 1 )))
46944686 self .assertEqual (t1 , t2 )
46954687
46964688 def test_subminute_offset_ordering (self ):
46974689 t1 = self .theclass (0 , tzinfo = timezone .utc )
4698- t2 = self .theclass (
4699- 0 , tzinfo = timezone (timedelta (microseconds = 1 ))
4700- )
4701- self .assertNotEqual (t1 , t2 )
4690+ t2 = self .theclass (0 , tzinfo = timezone (timedelta (microseconds = 1 )))
47024691 self .assertGreater (t1 , t2 )
47034692
47044693 def test_subminute_offset_hash (self ):
47054694 t1 = self .theclass (12 , tzinfo = timezone .utc )
4706- t2 = self .theclass (
4707- 12 , 0 , 1 , tzinfo = timezone (timedelta (seconds = 1 ))
4708- )
4695+ t2 = self .theclass (12 , 0 , 1 , tzinfo = timezone (timedelta (seconds = 1 )))
47094696 self .assertEqual (hash (t1 ), hash (t2 ))
4710- t2 = self .theclass (
4711- 12 , 0 , 0 , 1 ,
4712- tzinfo = timezone (timedelta (microseconds = 1 )),
4713- )
4697+ t2 = self .theclass (12 , 0 , 0 , 1 , tzinfo = timezone (timedelta (microseconds = 1 )))
47144698 self .assertEqual (hash (t1 ), hash (t2 ))
4715- t2 = self .theclass (
4716- 11 , 59 , 59 , 999999 ,
4717- tzinfo = timezone (timedelta (microseconds = - 1 )),
4718- )
4699+ t2 = self .theclass (11 , 59 , 59 , 999999 , tzinfo = timezone (timedelta (microseconds = - 1 )))
47194700 self .assertEqual (hash (t1 ), hash (t2 ))
47204701
47214702 def test_hash_edge_cases (self ):
0 commit comments