MCPcopy Create free account
hub / github.com/python/cpython / test_astimezone_default_near_fold

Method test_astimezone_default_near_fold

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

Source from the content-addressed store, hash-verified

5645
5646 @support.run_with_tz('EST+05EDT,M3.2.0,M11.1.0')
5647 def test_astimezone_default_near_fold(self):
5648 # Issue #26616.
5649 u = datetime(2015, 11, 1, 5, tzinfo=timezone.utc)
5650 t = u.astimezone()
5651 s = t.astimezone()
5652 self.assertEqual(t.tzinfo, s.tzinfo)
5653
5654 def test_aware_subtract(self):
5655 cls = self.theclass

Callers

nothing calls this directly

Calls 3

datetimeClass · 0.90
astimezoneMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected