Skip to content

Commit d95a817

Browse files
committed
testing bugfix: always copy baseline image
svn path=/trunk/matplotlib/; revision=8130
1 parent c7e58e3 commit d95a817

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/testing/decorators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ def compare_images_generator():
8888
orig_expected_fnames = [os.path.join(baseline_dir,fname) + '.' + extension for fname in baseline_images]
8989
expected_fnames = [os.path.join(result_dir,'expected-'+fname) + '.' + extension for fname in baseline_images]
9090
for src,dst in zip( orig_expected_fnames, expected_fnames ):
91-
if os.path.exists(src) and not os.path.exists(dst):
92-
shutil.copyfile(src,dst)
91+
shutil.copyfile(src,dst)
9392
actual_fnames = [os.path.join(result_dir, fname) + '.' + extension for fname in baseline_images]
9493
have_baseline_images = [os.path.exists(expected) for expected in expected_fnames]
9594
have_baseline_image = np.all(have_baseline_images)

0 commit comments

Comments
 (0)