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-20 09:08:42 +0100
commit11eb89abfdf9d9a9ae4971c38d087fc006b46f03 (patch)
treee693c1ad047403b2265f223a9ac238bd85828d14
parent46cb25f58e53efda916968c3e55791dac30fd5d8 (diff)
downloadpygobject-11eb89abfdf9d9a9ae4971c38d087fc006b46f03.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()