(self)
| 792 | |
| 793 | @unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") |
| 794 | def test_strptime_timezone(self): |
| 795 | t = time.strptime("UTC", "%Z") |
| 796 | self.assertEqual(t.tm_zone, 'UTC') |
| 797 | t = time.strptime("+0500", "%z") |
| 798 | self.assertEqual(t.tm_gmtoff, 5 * 3600) |
| 799 | |
| 800 | @unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") |
| 801 | def test_short_times(self): |
nothing calls this directly
no test coverage detected