MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_strptime_timezone

Method test_strptime_timezone

Lib/test/test_time.py:794–798  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

strptimeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected