stub42 / pytz

pytz Python historical timezone library and database
MIT License
342 stars 92 forks source link

Upgrade unittest asserts #87

Closed hugovk closed 2 years ago

hugovk commented 2 years ago

failUnlessEqual is set to be removed in Python 3.12 (due October 2023), for example:

And upgrade other asserts, by using other unittest methods which will give better error messages. For example:

-self.assertTrue(2 in self.lazy)
+self.assertIn(2, self.lazy)