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

Method test_astimezone_default_utc

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

Source from the content-addressed store, hash-verified

5626
5627 @support.run_with_tz('UTC')
5628 def test_astimezone_default_utc(self):
5629 dt = self.theclass.now(timezone.utc)
5630 self.assertEqual(dt.astimezone(None), dt)
5631 self.assertEqual(dt.astimezone(), dt)
5632
5633 # Note that offset in TZ variable has the opposite sign to that
5634 # produced by %z directive.

Callers

nothing calls this directly

Calls 3

nowMethod · 0.80
astimezoneMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected