Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2090fbc

Browse files
conftest is updated [formatting+comments]
1 parent4502b86 commit2090fbc

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
assertitemisnotNone
403405
assertcallisnotNone
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
ifcall.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
raiseRuntimeError(errMsg)
431435

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp