Skip to content

Commit

Permalink
don't use path.Path if we have Path already imported
Browse files Browse the repository at this point in the history
  • Loading branch information
timhoffm committed Jul 12, 2022
1 parent cd31e3a commit f5ffdb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/matplotlib/tests/test_agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


from matplotlib import (
collections, path, patheffects, pyplot as plt, transforms as mtransforms,
collections, patheffects, pyplot as plt, transforms as mtransforms,
rcParams, rc_context)
from matplotlib.backends.backend_agg import RendererAgg
from matplotlib.figure import Figure
Expand Down Expand Up @@ -56,7 +56,7 @@ def test_large_single_path_collection():
# applied.
f, ax = plt.subplots()
collection = collections.PathCollection(
[path.Path([[-10, 5], [10, 5], [10, -5], [-10, -5], [-10, 5]])])
[Path([[-10, 5], [10, 5], [10, -5], [-10, -5], [-10, 5]])])
ax.add_artist(collection)
ax.set_xlim(10**-3, 1)
plt.savefig(buff)
Expand Down Expand Up @@ -270,7 +270,7 @@ def test_webp_alpha():

def test_draw_path_collection_error_handling():
fig, ax = plt.subplots()
ax.scatter([1], [1]).set_paths(path.Path([(0, 1), (2, 3)]))
ax.scatter([1], [1]).set_paths(Path([(0, 1), (2, 3)]))
with pytest.raises(TypeError):
fig.canvas.draw()

Expand Down

0 comments on commit f5ffdb8

Please sign in to comment.