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

Method test_fromtimestamp

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

Source from the content-addressed store, hash-verified

6421
6422 @support.run_with_tz('EST+05EDT,M3.2.0,M11.1.0')
6423 def test_fromtimestamp(self):
6424 s = 1414906200
6425 dt0 = datetime.fromtimestamp(s)
6426 dt1 = datetime.fromtimestamp(s + 3600)
6427 self.assertEqual(dt0.fold, 0)
6428 self.assertEqual(dt1.fold, 1)
6429
6430 @support.run_with_tz('Australia/Lord_Howe')
6431 def test_fromtimestamp_lord_howe(self):

Callers

nothing calls this directly

Calls 2

fromtimestampMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected