MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_path_shallowcopy

Function test_path_shallowcopy

lib/matplotlib/tests/test_path.py:403–415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401
402
403def 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([

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
PathClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…