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'.
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'.