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

Method test_refcnt_crash_bug_22044

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

datetimeClass · 0.90
_TZInfoClass · 0.70
assertRaisesMethod · 0.45
utcoffsetMethod · 0.45

Tested by

no test coverage detected