diff --git a/GPy/testing/plotting_tests.py b/GPy/testing/plotting_tests.py index 9618697b..5030164e 100644 --- a/GPy/testing/plotting_tests.py +++ b/GPy/testing/plotting_tests.py @@ -81,7 +81,7 @@ def _image_comparison(baseline_images, extensions=['pdf','svg','ong'], tol=1e-3) actual = os.path.join(result_dir, "{}.{}".format(base, ext)) expected = os.path.join(baseline_dir, "{}.{}".format(base, ext)) def do_test(): - err = compare_images(actual, expected, tol) + err = compare_images(expected, actual, tol) try: if not os.path.exists(expected): raise ImageComparisonFailure(