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

Method test_getinitargs

Lib/test/pickletester.py:3161–3168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3159 self.assertEqual(loaded, REDUCE_A)
3160
3161 def test_getinitargs(self):
3162 if self.py_version < (3, 0):
3163 self.skipTest('"classic" classes are not interoperable with Python 2')
3164 for proto in protocols:
3165 inst = initarg(1, 2)
3166 dumped = self.dumps(inst, proto)
3167 loaded = self.loads(dumped)
3168 self.assert_is_copy(inst, loaded)
3169
3170 def test_metaclass(self):
3171 self.assertEqual(type(use_metaclass), metaclass)

Callers

nothing calls this directly

Calls 5

initargClass · 0.85
skipTestMethod · 0.80
assert_is_copyMethod · 0.80
dumpsMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected