diff options
author | Ran Benita <ran@unusedvar.com> | 2020-12-12 22:09:00 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-12-12 22:09:00 +0200 |
commit | 3302ff994959964c3ec2ab35ec1fe98c038684c0 (patch) | |
tree | 03f7c8f28dceb0558e3fac4a4e493f54cc72ec4e /testing | |
parent | 59bd0f6912fd9ec2b4c3e3bbc989636bb5f54dbf (diff) | |
download | pytest-3302ff994959964c3ec2ab35ec1fe98c038684c0.tar.gz |
terminal: when the skip/xfail is empty, don't show it as "()"
Avoid showing a line like
x.py::test_4 XPASS () [100%]
which looks funny.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/test_terminal.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/test_terminal.py b/testing/test_terminal.py index fdd4301f9..7ad5849d4 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -362,6 +362,10 @@ class TestTerminal: @pytest.mark.xfail(reason="789") def test_3(): assert False + + @pytest.mark.xfail(reason="") + def test_4(): + assert False """ ) result = pytester.runpytest("-v") @@ -370,6 +374,7 @@ class TestTerminal: "test_verbose_skip_reason.py::test_1 SKIPPED (123) *", "test_verbose_skip_reason.py::test_2 XPASS (456) *", "test_verbose_skip_reason.py::test_3 XFAIL (789) *", + "test_verbose_skip_reason.py::test_4 XFAIL *", ] ) |