pytester: raise_on_kwargs: ignore branch coverage

This commit is contained in:
Daniel Hahler 2019-04-14 22:58:19 +02:00
parent 19035f4b55
commit 1da8ce65a6
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ def pytest_configure(config):
def raise_on_kwargs(kwargs):
__tracebackhide__ = True
if kwargs:
if kwargs: # pragma: no branch
raise TypeError(
"Unexpected keyword arguments: {}".format(", ".join(sorted(kwargs)))
)