Skip to content

Commit

Permalink
tests: remove test_collect_report_postprocessing (#456)
Browse files Browse the repository at this point in the history
It is xfailing (since being added in 6dac774 (2010-11-06)), but for (likely)
unrelated reasons (`headerlines` was removed in 1c020c3 (2010-09-26)
already).
  • Loading branch information
blueyed committed Nov 2, 2020
1 parent ae72ec6 commit 9c6d220
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions testing/test_collection.py
Expand Up @@ -308,27 +308,6 @@ def repr_failure(self, excinfo):
result = testdir.runpytest(p)
result.stdout.fnmatch_lines(["*ERROR collecting*", "*hello world*"])

@pytest.mark.xfail(reason="other mechanism for adding to reporting needed")
def test_collect_report_postprocessing(self, testdir):
p = testdir.makepyfile(
"""
import not_exists
"""
)
testdir.makeconftest(
"""
import pytest
@pytest.hookimpl(hookwrapper=True)
def pytest_make_collect_report():
outcome = yield
rep = outcome.get_result()
rep.headerlines += ["header1"]
outcome.force_result(rep)
"""
)
result = testdir.runpytest(p)
result.stdout.fnmatch_lines(["*ERROR collecting*", "*header1*"])


class TestCustomConftests:
def test_ignore_collect_path(self, testdir):
Expand Down

0 comments on commit 9c6d220

Please sign in to comment.