Skip to content

Commit 4f8ec8e

Browse files
committed
TST: do not re-use the DrawingArea many times
This is exactly the sort of error that this check is supposed to catch.
1 parent 3cab932 commit 4f8ec8e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/tests/test_offsetbox.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ def test_offsetbox_loc_codes():
103103
'center': 10,
104104
}
105105
fig, ax = plt.subplots()
106-
da = DrawingArea(100, 100)
106+
107107
for code in codes:
108+
da = DrawingArea(100, 100)
108109
anchored_box = AnchoredOffsetbox(loc=code, child=da)
109110
ax.add_artist(anchored_box)
110111
fig.canvas.draw()

0 commit comments

Comments
 (0)