Skip to content

Commit

Permalink
up tolerance for image tests on mpl 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed Dec 2, 2019
1 parent 0a06bc1 commit 85d2325
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions obspy/core/util/testing.py
Expand Up @@ -362,6 +362,10 @@ def __init__(self, image_path, image_name, reltol=1,
# quite high.
elif [2, 0, 0] <= MATPLOTLIB_VERSION < [2, 0, 1]:
self.tol *= 12
# Some section waveform plots made on 2.2.2 have offset ticks on
# 2.0.2, so up tolerance a bit (see #2493)
elif MATPLOTLIB_VERSION < [2, 1]:
self.tol *= 5

# One last pass depending on the freetype version.
# XXX: Should eventually be handled differently!
Expand Down

0 comments on commit 85d2325

Please sign in to comment.