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

Method test_deepcopy_atomic

Lib/test/test_copy.py:362–371  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

360 # Type-specific _deepcopy_xxx() methods
361
362 def test_deepcopy_atomic(self):
363 class NewStyle:
364 pass
365 def f():
366 pass
367 tests = [None, ..., NotImplemented, 42, 2**100, 3.14, True, False, 1j,
368 b"bytes", "hello", "hello\u1234", f.__code__,
369 NewStyle, range(10), max, property()]
370 for x in tests:
371 self.assertIs(copy.deepcopy(x), x)
372
373 def test_deepcopy_list(self):
374 x = [[1, 2], 3]

Callers

nothing calls this directly

Calls 2

propertyClass · 0.85
assertIsMethod · 0.45

Tested by

no test coverage detected