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

Method test_deepcopy_recursive

Lib/test/test_descr.py:3866–3874  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3864 self.assertEqual('%c' % '5', '5')
3865
3866 def test_deepcopy_recursive(self):
3867 # Testing deepcopy of recursive objects...
3868 class Node:
3869 pass
3870 a = Node()
3871 b = Node()
3872 a.b = b
3873 b.a = a
3874 z = deepcopy(a) # This blew up before
3875
3876 def test_uninitialized_modules(self):
3877 # Testing uninitialized module objects...

Callers

nothing calls this directly

Calls 2

deepcopyFunction · 0.90
NodeClass · 0.70

Tested by

no test coverage detected