We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b64d940 + f3dbe5a commit df68808Copy full SHA for df68808
src/_pytest/pytester.py
@@ -77,7 +77,7 @@ def pytest_configure(config):
77
78
def raise_on_kwargs(kwargs):
79
__tracebackhide__ = True
80
- if kwargs:
+ if kwargs: # pragma: no branch
81
raise TypeError(
82
"Unexpected keyword arguments: {}".format(", ".join(sorted(kwargs)))
83
)
@@ -312,7 +312,8 @@ def listoutcomes(self):
312
passed.append(rep)
313
elif rep.skipped:
314
skipped.append(rep)
315
- elif rep.failed:
+ else:
316
+ assert rep.failed, "Unexpected outcome: {!r}".format(rep)
317
failed.append(rep)
318
return passed, skipped, failed
319
0 commit comments