pytest icon indicating copy to clipboard operation
pytest copied to clipboard

Update getting-started.rst about ExceptionGroup.

Open kmoonn opened this issue 1 year ago • 2 comments

The ExceptionGroup class is only available in Python 3.11 and later versions. If you're using an older version of Python, that's why you're seeing this NameError.

kmoonn avatar Oct 12 '24 13:10 kmoonn

pytest already depends on exceptiongroup on those Python versions:

https://github.com/pytest-dev/pytest/blob/f373974707f57a0b28d12563e4d03c7cd54c70d9/pyproject.toml#L51

So the only reason why you'd get an error there is a broken setup of some sorts. @kmoonn could you elaborate what the motivation for this change is?

The-Compiler avatar Oct 13 '24 10:10 The-Compiler

I don't understand the wording of this change. "... that's why you're seeing this NameError" - this implies a NameError that has already been mentioned somewhere, but there's no such earlier mention in getting-started.rst. This looks like a response copied out of context from an issue or an online community?

lanzz avatar Oct 13 '24 15:10 lanzz