ai-content-maker/.venv/Lib/site-packages/matplotlib/tests/test_textpath.py

11 lines
271 B
Python
Raw Normal View History

2024-05-03 04:18:51 +03:00
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