Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/matplotlib/matplotlib
/ test_copy
Function
test_copy
lib/matplotlib/tests/test_textpath.py:6–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4
5
6
def
test_copy():
7
tp = TextPath((0, 0),
"."
)
8
assert copy.deepcopy(tp).vertices is not tp.vertices
9
assert (copy.deepcopy(tp).vertices == tp.vertices).all()
10
assert copy.copy(tp).vertices is tp.vertices
Callers
nothing calls this directly
Calls
3
TextPath
Class · 0.90
deepcopy
Method · 0.80
copy
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…