Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ac1ab0

Browse files
committed
Pass an instance, rather than a type, to cleanup_path
1 parent dfa7df9 commit 3ac1ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_simplification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_start_with_moveto():
152152
verts = np.fromstring(decodebytes(data), dtype='<i4')
153153
verts = verts.reshape((len(verts) / 2, 2))
154154
path = Path(verts)
155-
segs = path.iter_segments(transforms.IdentityTransform, clip=(0.0, 0.0, 100.0, 100.0))
155+
segs = path.iter_segments(transforms.IdentityTransform(), clip=(0.0, 0.0, 100.0, 100.0))
156156
segs = list(segs)
157157
assert len(segs) == 1
158158
assert segs[0][1] == Path.MOVETO

0 commit comments

Comments
 (0)