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

Lines changed: 5 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy