test_textpath.py 271 B

12345678910
  1. import copy
  2. from matplotlib.textpath import TextPath
  3. def test_copy():
  4. tp = TextPath((0, 0), ".")
  5. assert copy.deepcopy(tp).vertices is not tp.vertices
  6. assert (copy.deepcopy(tp).vertices == tp.vertices).all()
  7. assert copy.copy(tp).vertices is tp.vertices