Skip to content

Commit f5ffdb8

Browse files
committed
don't use path.Path if we have Path already imported
1 parent cd31e3a commit f5ffdb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/tests/test_agg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
from matplotlib import (
10-
collections, path, patheffects, pyplot as plt, transforms as mtransforms,
10+
collections, patheffects, pyplot as plt, transforms as mtransforms,
1111
rcParams, rc_context)
1212
from matplotlib.backends.backend_agg import RendererAgg
1313
from matplotlib.figure import Figure
@@ -56,7 +56,7 @@ def test_large_single_path_collection():
5656
# applied.
5757
f, ax = plt.subplots()
5858
collection = collections.PathCollection(
59-
[path.Path([[-10, 5], [10, 5], [10, -5], [-10, -5], [-10, 5]])])
59+
[Path([[-10, 5], [10, 5], [10, -5], [-10, -5], [-10, 5]])])
6060
ax.add_artist(collection)
6161
ax.set_xlim(10**-3, 1)
6262
plt.savefig(buff)
@@ -270,7 +270,7 @@ def test_webp_alpha():
270270

271271
def test_draw_path_collection_error_handling():
272272
fig, ax = plt.subplots()
273-
ax.scatter([1], [1]).set_paths(path.Path([(0, 1), (2, 3)]))
273+
ax.scatter([1], [1]).set_paths(Path([(0, 1), (2, 3)]))
274274
with pytest.raises(TypeError):
275275
fig.canvas.draw()
276276

0 commit comments

Comments
 (0)