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

Skip to content

Commit cd37bba

Browse files
committed
Increase image comparison tolerance
1 parent c6cdcd3 commit cd37bba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/testing/decorators.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def do_test():
165165

166166
yield (do_test,)
167167

168-
def image_comparison(baseline_images=None, extensions=None, tol=10,
168+
def image_comparison(baseline_images=None, extensions=None, tol=13,
169169
freetype_version=None, remove_text=False,
170170
savefig_kwarg=None):
171171
"""
@@ -260,11 +260,11 @@ def _image_directories(func):
260260
subdir = os.path.splitext(os.path.split(script_name)[1])[0]
261261
else:
262262
mods = module_name.split('.')
263-
mods.pop(0) # <- will be the name of the package being tested (in
263+
mods.pop(0) # <- will be the name of the package being tested (in
264264
# most cases "matplotlib")
265265
assert mods.pop(0) == 'tests'
266266
subdir = os.path.join(*mods)
267-
267+
268268
import imp
269269
def find_dotted_module(module_name, path=None):
270270
"""A version of imp which can handle dots in the module name"""
@@ -273,7 +273,7 @@ def find_dotted_module(module_name, path=None):
273273
res = _, path, _ = imp.find_module(sub_mod, path)
274274
path = [path]
275275
return res
276-
276+
277277
mod_file = find_dotted_module(func.__module__)[1]
278278
basedir = os.path.dirname(mod_file)
279279

0 commit comments

Comments
 (0)