Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 195 Bytes

10660.bugfix.rst

File metadata and controls

2 lines (2 loc) · 195 Bytes

Fixed :py:func:`pytest.raises` to return a 'ContextManager' so that type-checkers could narrow pytest.raises(...) if ... else nullcontext() down to 'ContextManager' rather than 'object'.