1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
From: Ole Streicher <olebole@debian.org>
Date: Sun, 12 Apr 2020 14:35:01 +0200
Subject: Skip tests that work only with Agg
---
yt/tests/test_testing.py | 4 +++-
yt/visualization/tests/test_color_maps.py | 3 +++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/yt/tests/test_testing.py b/yt/tests/test_testing.py
index a45f794..8df34a2 100644
--- a/yt/tests/test_testing.py
+++ b/yt/tests/test_testing.py
@@ -1,4 +1,5 @@
from unittest import SkipTest
+import pytest
import matplotlib
@@ -8,6 +9,7 @@ active_backend = matplotlib.get_backend()
inactive_backend = ({"gtkagg", "macosx", "wx", "tkagg"} - {active_backend}).pop()
+@pytest.mark.skip(reason="https://github.com/yt-project/yt/issues/2533")
def test_requires_inactive_backend():
@requires_backend(inactive_backend)
def foo():
@@ -22,7 +24,7 @@ def test_requires_inactive_backend():
"@requires_backend appears to be broken (skip was expected)"
)
-
+@pytest.mark.skip(reason="https://github.com/yt-project/yt/issues/2533")
def test_requires_active_backend():
@requires_backend(active_backend)
def foo():
diff --git a/yt/visualization/tests/test_color_maps.py b/yt/visualization/tests/test_color_maps.py
index 6c99d9e..90fcded 100644
--- a/yt/visualization/tests/test_color_maps.py
+++ b/yt/visualization/tests/test_color_maps.py
@@ -2,6 +2,7 @@ import os
import shutil
import tempfile
import unittest
+import pytest
import matplotlib.pyplot as plt
import numpy as np
@@ -22,6 +23,7 @@ class TestColorMaps(unittest.TestCase):
os.chdir(self.curdir)
shutil.rmtree(self.tmpdir)
+ @pytest.mark.skip(reason="https://github.com/yt-project/yt/issues/2533")
@requires_backend("Agg")
def test_show_colormaps(self):
show_colormaps()
@@ -37,6 +39,7 @@ class TestColorMaps(unittest.TestCase):
)
assert_equal(str(ex.exception), desired)
+ @pytest.mark.skip(reason="https://github.com/yt-project/yt/issues/2533")
@requires_backend("Agg")
def test_make_colormap(self):
make_colormap(
|