Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b4afa3b

Browse filesBrowse files
committed
TST: disable non-'classic' tests
This commit should be reverted before v2.0 is tagged.
1 parent b3ee53d commit b4afa3b
Copy full SHA for b4afa3b

File tree

Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed

‎lib/matplotlib/testing/decorators.py

Copy file name to clipboardExpand all lines: lib/matplotlib/testing/decorators.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def check_freetype_version(ver):
176176

177177
return found >= ver[0] and found <= ver[1]
178178

179+
179180
class ImageComparisonTest(CleanupTest):
180181
@classmethod
181182
def setup_class(cls):
@@ -213,7 +214,8 @@ def remove_text(figure):
213214

214215
def test(self):
215216
baseline_dir, result_dir = _image_directories(self._func)
216-
217+
if self._style != 'classic':
218+
raise KnownFailureTest('temporarily disabled until 2.0 tag')
217219
for fignum, baseline in zip(plt.get_fignums(), self._baseline_images):
218220
for extension in self._extensions:
219221
will_fail = not extension in comparable_formats()

‎lib/matplotlib/tests/test_backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_pgf.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from matplotlib.testing.compare import compare_images, ImageComparisonFailure
1818
from matplotlib.testing.decorators import (_image_directories, switch_backend,
1919
cleanup)
20-
20+
from matplotlib.testing.noseclasses import KnownFailureTest
2121

2222
baseline_dir, result_dir = _image_directories(lambda: 'dummy func')
2323

@@ -43,6 +43,8 @@ def check_for(texsystem):
4343

4444

4545
def compare_figure(fname, savefig_kwargs={}, tol=0):
46+
# TODO remove this before tagging 2.0
47+
raise KnownFailureTest('temporarily disabled until 2.0 tag')
4648
actual = os.path.join(result_dir, fname)
4749
plt.savefig(actual, **savefig_kwargs)
4850

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.