MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_comparison_with_tzinfo

Method test_comparison_with_tzinfo

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

Source from the content-addressed store, hash-verified

445 timezone(delta)
446
447 def test_comparison_with_tzinfo(self):
448 # Constructing tzinfo objects directly should not be done by users
449 # and serves only to check the bug described in bpo-37915
450 self.assertNotEqual(timezone.utc, tzinfo())
451 self.assertNotEqual(timezone(timedelta(hours=1)), tzinfo())
452
453#############################################################################
454# 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