From d9e8b674f254a1b9e725ae8ae9ae8c49cc871677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nico=20Schl=C3=B6mer?= Date: Sun, 22 Dec 2019 15:00:27 +0100 Subject: [PATCH 1/2] relax two test tolerances on x86_64 --- lib/matplotlib/tests/test_backend_pgf.py | 2 +- lib/matplotlib/tests/test_usetex.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/tests/test_backend_pgf.py b/lib/matplotlib/tests/test_backend_pgf.py index c635b280ef84..a5c5bc6095f1 100644 --- a/lib/matplotlib/tests/test_backend_pgf.py +++ b/lib/matplotlib/tests/test_backend_pgf.py @@ -168,7 +168,7 @@ def test_pathclip(): @needs_xelatex @pytest.mark.backend('pgf') @image_comparison(['pgf_mixedmode.pdf'], style='default', - tol={'aarch64': 1.086}.get(platform.machine(), 0.0)) + tol={'aarch64': 1.086, 'x86_64': 1.086}.get(platform.machine(), 0.0)) def test_mixedmode(): rc_xelatex = {'font.family': 'serif', 'pgf.rcfonts': False} diff --git a/lib/matplotlib/tests/test_usetex.py b/lib/matplotlib/tests/test_usetex.py index 1b7b76bfc0f2..2a27955dbcb8 100644 --- a/lib/matplotlib/tests/test_usetex.py +++ b/lib/matplotlib/tests/test_usetex.py @@ -12,7 +12,7 @@ @image_comparison(baseline_images=['test_usetex'], extensions=['pdf', 'png'], - tol={'aarch64': 2.868}.get(platform.machine(), 0.3)) + tol={'aarch64': 2.868, 'x86_64': 2.868}.get(platform.machine(), 0.3)) def test_usetex(): mpl.rcParams['text.usetex'] = True fig = plt.figure() From c74ee7c31aef30b96789cda51512afdb6ca9c716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nico=20Schl=C3=B6mer?= Date: Sun, 22 Dec 2019 18:56:34 +0100 Subject: [PATCH 2/2] flake8 fixes --- lib/matplotlib/tests/test_backend_pgf.py | 4 +++- lib/matplotlib/tests/test_usetex.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/tests/test_backend_pgf.py b/lib/matplotlib/tests/test_backend_pgf.py index a5c5bc6095f1..4868609f84fd 100644 --- a/lib/matplotlib/tests/test_backend_pgf.py +++ b/lib/matplotlib/tests/test_backend_pgf.py @@ -168,7 +168,9 @@ def test_pathclip(): @needs_xelatex @pytest.mark.backend('pgf') @image_comparison(['pgf_mixedmode.pdf'], style='default', - tol={'aarch64': 1.086, 'x86_64': 1.086}.get(platform.machine(), 0.0)) + tol={'aarch64': 1.086, 'x86_64': 1.086}.get( + platform.machine(), 0.0 + )) def test_mixedmode(): rc_xelatex = {'font.family': 'serif', 'pgf.rcfonts': False} diff --git a/lib/matplotlib/tests/test_usetex.py b/lib/matplotlib/tests/test_usetex.py index 2a27955dbcb8..36c8515d1e0c 100644 --- a/lib/matplotlib/tests/test_usetex.py +++ b/lib/matplotlib/tests/test_usetex.py @@ -12,7 +12,9 @@ @image_comparison(baseline_images=['test_usetex'], extensions=['pdf', 'png'], - tol={'aarch64': 2.868, 'x86_64': 2.868}.get(platform.machine(), 0.3)) + tol={'aarch64': 2.868, 'x86_64': 2.868}.get( + platform.machine(), 0.3 + )) def test_usetex(): mpl.rcParams['text.usetex'] = True fig = plt.figure()