Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ test_copy_basic
Method
test_copy_basic
Lib/test/test_copy.py:26–29 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
24
# The copy() method
25
26
def
test_copy_basic(self):
27
x = 42
28
y = copy.copy(x)
29
self.assertEqual(x, y)
30
31
def
test_copy_copy(self):
32
class
C(object):
Callers
nothing calls this directly
Calls
2
copy
Method · 0.45
assertEqual
Method · 0.45
Tested by
no test coverage detected