[pygobject/pygobject-3-36] tests: don't use strict mode for xfail with the excepthook plugin
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-3-36] tests: don't use strict mode for xfail with the excepthook plugin
- Date: Fri, 20 Mar 2020 08:09:33 +0000 (UTC)
commit 11eb89abfdf9d9a9ae4971c38d087fc006b46f03
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sat Mar 14 17:19:56 2020 +0100
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.
tests/test_glib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]