You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modernize ConftestImportFailure to use the exception chain
Give ConftestImportFailure the same shape PluginImportFailure just got:
a bare Exception subclass whose argument is the conftest path, with the
original error carried by `raise ... from` on __cause__ instead of a
hand-rolled `cause` attribute duplicating it. The custom __init__ and
__str__ go away; str(e) is the path, which is exactly what the two
message consumers want.
The `cause` attribute dates to 8.0 (e1074f9), which replaced the old
excinfo triplet without deprecation; the class is private to
_pytest.config and a code search finds no external consumers, only
vendored copies of pytest itself.
No user-visible output changes.
Co-Authored-By: Claude Fable 5 <ai@anthropic.com>
Co-Authored-By: Claude Code <ai@anthropic.com>
0 commit comments