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

Method test_strptime_errors

Lib/test/datetimetester.py:4065–4068  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4063 self.assertEqual(strptime("UTC", "%Z").tzinfo, None)
4064
4065 def test_strptime_errors(self):
4066 for tzstr in ("-2400", "-000", "z"):
4067 with self.assertRaises(ValueError):
4068 self.theclass.strptime(tzstr, "%z")
4069
4070 def test_strptime_single_digit(self):
4071 # bpo-34903: Check that single digit times are allowed.

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45
strptimeMethod · 0.45

Tested by

no test coverage detected