|
|
dfc777 |
From cb75688d5cbdcecbca550d6661e4734a7121854f Mon Sep 17 00:00:00 2001
|
|
|
dfc777 |
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
dfc777 |
Date: Mon, 16 Jul 2018 00:52:13 -0400
|
|
|
dfc777 |
Subject: [PATCH] Increase tolerance for new FreeType.
|
|
|
dfc777 |
|
|
|
dfc777 |
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
dfc777 |
---
|
|
|
dfc777 |
tests/test_pytest_mpl.py | 8 ++++----
|
|
|
dfc777 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
dfc777 |
|
|
|
dfc777 |
diff --git a/tests/test_pytest_mpl.py b/tests/test_pytest_mpl.py
|
|
|
dfc777 |
index 146bc0a..1dc7bc1 100644
|
|
|
dfc777 |
--- a/tests/test_pytest_mpl.py
|
|
|
dfc777 |
+++ b/tests/test_pytest_mpl.py
|
|
|
dfc777 |
@@ -54,7 +54,7 @@ def assert_pytest_fails_with(args, output_substring):
|
|
|
dfc777 |
|
|
|
dfc777 |
|
|
|
dfc777 |
@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
|
|
|
dfc777 |
- tolerance=DEFAULT_TOLERANCE)
|
|
|
dfc777 |
+ tolerance=7.1)
|
|
|
dfc777 |
def test_succeeds():
|
|
|
dfc777 |
fig = plt.figure()
|
|
|
dfc777 |
ax = fig.add_subplot(1, 1, 1)
|
|
|
dfc777 |
@@ -86,7 +86,7 @@ def test_succeeds_faulty_mirror():
|
|
|
dfc777 |
class TestClass(object):
|
|
|
dfc777 |
|
|
|
dfc777 |
@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
|
|
|
dfc777 |
- tolerance=DEFAULT_TOLERANCE)
|
|
|
dfc777 |
+ tolerance=7.1)
|
|
|
dfc777 |
def test_succeeds(self):
|
|
|
dfc777 |
fig = plt.figure()
|
|
|
dfc777 |
ax = fig.add_subplot(1, 1, 1)
|
|
|
dfc777 |
@@ -213,7 +213,7 @@ def test_nofigure():
|
|
|
dfc777 |
|
|
|
dfc777 |
@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
|
|
|
dfc777 |
style='fivethirtyeight',
|
|
|
dfc777 |
- tolerance=DEFAULT_TOLERANCE)
|
|
|
dfc777 |
+ tolerance=7.5)
|
|
|
dfc777 |
def test_base_style():
|
|
|
dfc777 |
fig = plt.figure()
|
|
|
dfc777 |
ax = fig.add_subplot(1, 1, 1)
|
|
|
dfc777 |
@@ -249,7 +249,7 @@ class TestClassWithSetup:
|
|
|
dfc777 |
|
|
|
dfc777 |
@pytest.mark.mpl_image_compare(baseline_dir=baseline_dir_local,
|
|
|
dfc777 |
filename='test_succeeds.png',
|
|
|
dfc777 |
- tolerance=DEFAULT_TOLERANCE)
|
|
|
dfc777 |
+ tolerance=7.1)
|
|
|
dfc777 |
def test_succeeds(self):
|
|
|
dfc777 |
fig = plt.figure()
|
|
|
dfc777 |
ax = fig.add_subplot(1, 1, 1)
|
|
|
dfc777 |
--
|
|
|
dfc777 |
2.26.2
|
|
|
dfc777 |
|