def testZoneInfoDeprecated(self): with self.assertWarns(DeprecationWarning): tzi = zoneinfo.gettz('US/Eastern')