| 401 | |
| 402 | |
| 403 | def test_path_shallowcopy(): |
| 404 | # Should not raise any error |
| 405 | verts = [[0, 0], [1, 1]] |
| 406 | codes = [Path.MOVETO, Path.LINETO] |
| 407 | path1 = Path(verts) |
| 408 | path2 = Path(verts, codes) |
| 409 | path1_copy = path1.copy() |
| 410 | path2_copy = path2.copy() |
| 411 | assert path1 is not path1_copy |
| 412 | assert path1.vertices is path1_copy.vertices |
| 413 | assert path2 is not path2_copy |
| 414 | assert path2.vertices is path2_copy.vertices |
| 415 | assert path2.codes is path2_copy.codes |
| 416 | |
| 417 | |
| 418 | @pytest.mark.parametrize('phi', np.concatenate([ |