Skip to content

Commit bad733f

Browse files
committed
Update some docstrings
1 parent cf38ee4 commit bad733f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/conftest.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def pytest_generate_tests(metafunc):
7272
if len(test_targets) == 0:
7373
pytest.skip('No test manifest or directory specified (use --tests)')
7474

75-
# Build a root manifest structure like the original runner did.
75+
# Build a root manifest structure with target files and dirs (equivalent to the original runner).
7676
root_manifest = {
7777
'@context': 'https://w3c.github.io/tests/context.jsonld',
7878
'@id': '',
@@ -105,13 +105,12 @@ def pytest_generate_tests(metafunc):
105105

106106

107107
@pytest.hookimpl(hookwrapper=True, tryfirst=True)
108-
def pytest_runtest_makereport(item, call):
108+
def pytest_runtest_makereport(item):
109109
# Hookwrapper gives us the final test report via `outcome.get_result()`.
110110
outcome = yield
111111
rep = outcome.get_result()
112-
# We handle failures/errors that occur during setup as well as the
113-
# main call phase so EARL reflects tests that fail before the test
114-
# body runs. We intentionally do not record skipped tests to match
112+
113+
# We only handle the main call phase to match
115114
# the behaviour of the original runner which only reported passes
116115
# and failures/errors.
117116
if rep.when not in ('call'):

0 commit comments

Comments
 (0)