From 0ec5b8d6ddc8f39438f685108ec6ca076726fa94 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 20 May 2020 18:10:13 +0200 Subject: [PATCH] fix --ignored handling --- python/src/deltachat/testplugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/src/deltachat/testplugin.py b/python/src/deltachat/testplugin.py index d38788361..4ce70f0f0 100644 --- a/python/src/deltachat/testplugin.py +++ b/python/src/deltachat/testplugin.py @@ -74,6 +74,9 @@ def pytest_configure(config): @pytest.hookimpl(hookwrapper=True) def pytest_runtest_setup(self, item): + if item.get_closest_marker("ignored"): + if not item.config.getvalue("ignored"): + pytest.skip("use --ignored to run this test") self.enable_logging(item) yield self.disable_logging(item)