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.
1 parent 410a052 commit be2600eCopy full SHA for be2600e
src/_pytest/python_api.py
@@ -1017,7 +1017,7 @@ def validate_exc(exc: type[E]) -> type[E]:
1017
raise TypeError(f"{func!r} object (type: {type(func)}) must be callable")
1018
try:
1019
func(*args[1:], **kwargs)
1020
- except expected_exceptions as e:
+ except expected_exceptions as e: # pylint: disable=catching-non-exception
1021
return _pytest._code.ExceptionInfo.from_exception(e)
1022
fail(message)
1023
0 commit comments