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

Method test_refcnt_crash_bug_22044

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

Source from the content-addressed store, hash-verified

168class TestTZInfo(unittest.TestCase):
169
170 def test_refcnt_crash_bug_22044(self):
171 tz1 = _TZInfo()
172 dt1 = datetime(2014, 7, 21, 11, 32, 3, 0, tz1)
173 with self.assertRaises(TypeError):
174 dt1.utcoffset()
175
176 def test_non_abstractness(self):
177 # In order to allow subclasses to get pickled, the C implementation

Callers

nothing calls this directly

Calls 4

datetimeClass · 0.90
_TZInfoClass · 0.85
assertRaisesMethod · 0.45
utcoffsetMethod · 0.45

Tested by

no test coverage detected