MCPcopy Index your code
hub / github.com/python/cpython / test_y_before_1900

Method test_y_before_1900

Lib/test/test_strftime.py:197–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

195 """
196
197 def test_y_before_1900(self):
198 # Issue #13674, #19634
199 t = (1899, 1, 1, 0, 0, 0, 0, 0, 0)
200 if sys.platform.startswith(("aix", "sunos", "solaris")):
201 with self.assertRaises(ValueError):
202 time.strftime("%y", t)
203 else:
204 self.assertEqual(time.strftime("%y", t), "99")
205
206 def test_y_1900(self):
207 self.assertEqual(

Callers

nothing calls this directly

Calls 4

startswithMethod · 0.45
assertRaisesMethod · 0.45
strftimeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected