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

Skip to content

Commit 6588bb3

Browse files
committed
Fix tests
1 parent e5bd364 commit 6588bb3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/matplotlib/tests/test_backend_pdf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from matplotlib import rcParams
44
from matplotlib import pyplot as plt
5-
from matplotlib.testing.decorators import image_comparison, knownfailureif
5+
from matplotlib.testing.decorators import image_comparison, knownfailureif, cleanup
66

77
@image_comparison(baseline_images=['pdf_use14corefonts'], extensions=['pdf'])
88
def test_use14corefonts():
@@ -19,11 +19,12 @@ def test_use14corefonts():
1919

2020
plt.figure()
2121
plt.title(title)
22-
plt.text(0.5, 0.5, text, horizontalalignment='center', verticalalignment='bottom',
22+
plt.text(0.5, 0.5, text, horizontalalignment='center',
23+
verticalalignment='bottom',
2324
fontsize=24)
2425
plt.axhline(0.5, linewidth=0.5)
2526

26-
27+
@cleanup
2728
def test_type42():
2829
import io
2930

lib/matplotlib/tests/test_coding_standards.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class StandardReportWithExclusions(pep8.StandardReport):
9797
'*/matplotlib/tests/test_triangulation.py',
9898
'*/matplotlib/compat/subprocess.py',
9999
'*/matplotlib/backends/__init__.py',
100+
'*/matplotlib/backends/_backend_gdk.py',
101+
'*/matplotlib/backends/_gtkagg.py',
100102
'*/matplotlib/backends/backend_agg.py',
101103
'*/matplotlib/backends/backend_cairo.py',
102104
'*/matplotlib/backends/backend_cocoaagg.py',

0 commit comments

Comments
 (0)