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

Method test_newobj_list

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

Source from the content-addressed store, hash-verified

3431 self.assert_is_copy(x, y)
3432
3433 def test_newobj_list(self):
3434 x = MyList([1, 2, 3])
3435 x.foo = 42
3436 x.bar = "hello"
3437 for proto in protocols:
3438 s = self.dumps(x, proto)
3439 y = self.loads(s)
3440 self.assert_is_copy(x, y)
3441
3442 def test_newobj_generic(self):
3443 for proto in protocols:

Callers

nothing calls this directly

Calls 4

assert_is_copyMethod · 0.80
MyListClass · 0.70
dumpsMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected