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

Method test_comparison_with_tzinfo

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

Source from the content-addressed store, hash-verified

450 timezone(delta)
451
452 def test_comparison_with_tzinfo(self):
453 # Constructing tzinfo objects directly should not be done by users
454 # and serves only to check the bug described in bpo-37915
455 self.assertNotEqual(timezone.utc, tzinfo())
456 self.assertNotEqual(timezone(timedelta(hours=1)), tzinfo())
457
458#############################################################################
459# Base class for testing a particular aspect of timedelta, time, date and

Callers

nothing calls this directly

Calls 4

tzinfoClass · 0.90
timezoneClass · 0.90
timedeltaClass · 0.90
assertNotEqualMethod · 0.80

Tested by

no test coverage detected