Files
MLPproject/.venv/lib/python3.12/site-packages/matplotlib/tests/test_textpath.py
2025-10-23 15:44:32 +02:00

11 lines
271 B
Python

import copy
from matplotlib.textpath import TextPath
def test_copy():
tp = TextPath((0, 0), ".")
assert copy.deepcopy(tp).vertices is not tp.vertices
assert (copy.deepcopy(tp).vertices == tp.vertices).all()
assert copy.copy(tp).vertices is tp.vertices