Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2090fbc

Browse files
conftest is updated [formatting+comments]
1 parent 4502b86 commit 2090fbc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/conftest.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ def pytest_runtest_makereport(item: pytest.Function, call: pytest.CallInfo):
399399
# Note that hook wrappers don’t return results themselves,
400400
# they merely perform tracing or other side effects around the actual hook implementations.
401401
#
402+
# https://docs.pytest.org/en/7.1.x/reference/reference.html#test-running-runtest-hooks
403+
#
402404
assert item is not None
403405
assert call is not None
404406
# it may be pytest.Function or _pytest.unittest.TestCaseFunction
@@ -425,7 +427,9 @@ def pytest_runtest_makereport(item: pytest.Function, call: pytest.CallInfo):
425427
if call.when == "teardown":
426428
return
427429

428-
errMsg = "[pytest_runtest_makereport] unknown 'call.when' value: [{0}].".format(call.when)
430+
errMsg = "[pytest_runtest_makereport] unknown 'call.when' value: [{0}].".format(
431+
call.when
432+
)
429433

430434
raise RuntimeError(errMsg)
431435

0 commit comments

Comments
 (0)