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

Method test_deepcopy_atomic

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

propertyClass · 0.85
assertIsMethod · 0.45

Tested by

no test coverage detected