Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9da2546

Browse 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 parentsea34bd1 +f456138 commit9da2546

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎lib/matplotlib/tests/test_axes.py

Lines 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-
deftest_stem(use_line_collection):
3230+
@image_comparison(['stem.png','stem.png'],style='mpl20',remove_text=True)
3231+
deftest_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+
foruse_line_collectionin [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)

[8]ページ先頭

©2009-2025 Movatter.jp