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

Skip to content

Commit 8dd2838

Browse files
authored
test_StrCategoryLocator using parameterized plotter (#19963)
The plot function in `test_StrCategoryLocator1` in `test_category` is parametrized, but the test was using `ax.plot` so this PR has it use the parameter instead.
1 parent 27567dd commit 8dd2838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_category.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_StrCategoryLocator(self):
140140

141141
@pytest.mark.parametrize("plotter", PLOT_LIST, ids=PLOT_IDS)
142142
def test_StrCategoryLocatorPlot(self, ax, plotter):
143-
ax.plot(["a", "b", "c"])
143+
plotter(ax, [1, 2, 3], ["a", "b", "c"])
144144
np.testing.assert_array_equal(ax.yaxis.major.locator(), range(3))
145145

146146

0 commit comments

Comments
 (0)