Skip to content

Commit 6a361eb

Browse files
committed
Shuffle image comparison tests order
1 parent b80563f commit 6a361eb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/matplotlib/testing/decorators.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ def image_comparison(baseline_images=None, extensions=None, tol=0,
322322
# default extensions to test
323323
extensions = ['png', 'pdf', 'svg']
324324

325+
prng = np.random.RandomState(0)
326+
prng.shuffle(extensions)
327+
325328
if savefig_kwarg is None:
326329
#default no kwargs to savefig
327330
savefig_kwarg = dict()

0 commit comments

Comments
 (0)