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

Skip to content

Commit 1c14132

Browse files
committed
fix #5495. Combine two tests to prevent race cond
1 parent 1fe4df7 commit 1c14132

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/matplotlib/tests/test_cycles.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def test_colorcycle_basic():
2626
ax.legend(loc='upper left')
2727

2828

29-
@image_comparison(baseline_images=['marker_cycle'], remove_text=True,
30-
extensions=['png'])
29+
@image_comparison(baseline_images=['marker_cycle', 'marker_cycle'],
30+
remove_text=True, extensions=['png'])
3131
def test_marker_cycle():
3232
fig = plt.figure()
3333
ax = fig.add_subplot(111)
@@ -44,11 +44,6 @@ def test_marker_cycle():
4444
ax.plot(xs, ys, label='red2 dot', lw=4, ms=16)
4545
ax.legend(loc='upper left')
4646

47-
48-
# Reuse the image from test_marker_cycle()
49-
@image_comparison(baseline_images=['marker_cycle'], remove_text=True,
50-
extensions=['png'])
51-
def test_marker_cycle_keywords():
5247
fig = plt.figure()
5348
ax = fig.add_subplot(111)
5449
# Test keyword arguments, numpy arrays, and generic iterators

0 commit comments

Comments
 (0)