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

Commit4502b86

Browse files
helper__makereport__call is updated [revision]
1 parentd9db881 commit4502b86

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎tests/conftest.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,14 @@ def helper__makereport__call(
316316

317317
exitStatus="SKIPPED"
318318
reasonText=str(call.excinfo.value)
319-
reasonMsg="SKIP REASON: {0}"
319+
reasonMsgTempl="SKIP REASON: {0}"
320320

321321
eliftype(call.excinfo.value)==_pytest.outcomes.XFailed:# noqa: E721
322322
TEST_PROCESS_STATS.incrementXFailedTestCount(testID)
323323

324324
exitStatus="XFAILED"
325325
reasonText=str(call.excinfo.value)
326-
reasonMsg="XFAIL REASON: {0}"
326+
reasonMsgTempl="XFAIL REASON: {0}"
327327
else:
328328
exitStatus="XFAILED"
329329
asserthasattr(rep,"wasxfail")
@@ -333,13 +333,16 @@ def helper__makereport__call(
333333
TEST_PROCESS_STATS.incrementXFailedTestCount(testID)
334334

335335
reasonText=rep.wasxfail
336-
reasonMsg="XFAIL REASON: {0}"
336+
reasonMsgTempl="XFAIL REASON: {0}"
337337

338338
logging.error(call.excinfo.value)
339339

340+
asserttype(reasonText)==str# noqa: E721
341+
340342
ifreasonText!="":
343+
asserttype(reasonMsgTempl)==str# noqa: E721
341344
logging.info("*")
342-
logging.info("* "+reasonMsg.format(reasonText))
345+
logging.info("* "+reasonMsgTempl.format(reasonText))
343346

344347
elifrep.outcome=="failed":
345348
assertcall.excinfoisnotNone

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp