Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9da2546

Browse filesBrowse files
authored
Merge pull request #16760 from meeseeksmachine/auto-backport-of-pr-16735-on-v3.2.x
Backport PR #16735 on branch v3.2.x (Make test_stem less flaky.)
2 parents ea34bd1 + f456138 commit 9da2546
Copy full SHA for 9da2546

File tree

Expand file treeCollapse file tree

1 file changed

+9
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-4
lines changed

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+9-4Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3227,10 +3227,15 @@ def test_hist_stacked_weighted():
32273227
ax.hist((d1, d2), weights=(w1, w2), histtype="stepfilled", stacked=True)
32283228

32293229

3230-
@pytest.mark.parametrize("use_line_collection", [True, False],
3231-
ids=['w/ line collection', 'w/o line collection'])
3232-
@image_comparison(['stem.png'], style='mpl20', remove_text=True)
3233-
def test_stem(use_line_collection):
3230+
@image_comparison(['stem.png', 'stem.png'], style='mpl20', remove_text=True)
3231+
def test_stem():
3232+
# Note, we don't use @pytest.mark.parametrize, because in parallel this
3233+
# might cause one process result to overwrite another's.
3234+
for use_line_collection in [True, False]:
3235+
_test_stem(use_line_collection)
3236+
3237+
3238+
def _test_stem(use_line_collection):
32343239
x = np.linspace(0.1, 2 * np.pi, 100)
32353240
args = (x, np.cos(x))
32363241
# Label is a single space to force a legend to be drawn, but to avoid any

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.