summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-03-14 17:19:56 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2020-03-14 17:30:35 +0100
commitdae0500166068d78150855bdef94f0bee18b31dd (patch)
tree60356b178447f8ae1a22098a83e725de466079ce
parent97024e55785d971b8f86bb6659ba3f0e4b076473 (diff)
downloadpygobject-dae0500166068d78150855bdef94f0bee18b31dd.tar.gz
tests: don't use strict mode for xfail with the excepthook plugin
This no longer works since pytest 5.4.0. Somehow the xfail gets checked before the plugin runs so errors thrown in the plugin get ignored.
-rw-r--r--tests/test_glib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_glib.py b/tests/test_glib.py
index 565a8722..70be98e6 100644
--- a/tests/test_glib.py
+++ b/tests/test_glib.py
@@ -18,7 +18,7 @@ from gi._compat import PY3
class TestGLib(unittest.TestCase):
- @pytest.mark.xfail(strict=True)
+ @pytest.mark.xfail()
def test_pytest_capture_error_in_closure(self):
# this test is supposed to fail
ml = GLib.MainLoop()