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
pytest >= 7.2 uses the exceptiongroup library while rendering tracebacks.
If the exception is a urllib.error.HTTPErrorpython/cpython#90113 occurs causing an INTERNALERROR.
(pytest < 7.2 does not have this problem.)
Minimal example:
fromurllib.errorimportHTTPErrordeftest_HTTPError():
raiseHTTPError(
'http://localhost', '500', 'Internal Server Error', hdrs=(), fp=None)
`exceptiongroup` < 1.1.1 has a bug with `pytest` >= 7.2 where rendering
certain error tracebacks would cause an internal error (see
pytest-dev/pytest#10797). This sets the
`exceptiongroup` version to prevent us from encountering the bug.
Testing Done:
- Ran into this bug while running Power Pack tests, which was fixed
after upgrading my `exceptiongroup` version to 1.1.1.
- Ran `./setup.py develop` and ran unit tests
Reviewed at https://reviews.reviewboard.org/r/13425/
pytest
>= 7.2 uses theexceptiongroup
library while rendering tracebacks.If the exception is a
urllib.error.HTTPError
python/cpython#90113 occurs causing an INTERNALERROR.(
pytest < 7.2
does not have this problem.)Minimal example:
Traceback
Using pytest 7.2.2 on Python 3.9.16
The text was updated successfully, but these errors were encountered: