Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExceptionInfo isn't documented #335

Closed
pytestbot opened this issue Jul 22, 2013 · 4 comments
Closed

ExceptionInfo isn't documented #335

pytestbot opened this issue Jul 22, 2013 · 4 comments
Labels
type: enhancement new feature or API change, should be merged into features branch

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Mathieu Agopian (BitBucket: magopian, GitHub: magopian)


There's no documentation on the ExceptionInfo returned by pytest.raises.

There's an hint about such an object being returned in the following documentation though: http://pytest.org/latest/builtin.html?highlight=exceptioninfo#helpers-for-assertions-about-exceptions-warnings


@pytestbot
Copy link
Contributor Author

Original comment by Mathieu Agopian (BitBucket: magopian, GitHub: magopian):


On irc (bug day):

"09:48 < hpk> magopian: the docs should go into doc/en/assert.txt - there is a section already, and then maybe cross-ref it from builtins"

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


refs #335: clarify that the exception info returned by pytest.raises is a py.code.ExceptionInfo()

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


fixes #335: document ExceptionInfo returned by pytest.raises

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


add changelog entry for fixed issue 335.

@pytestbot pytestbot added the type: enhancement new feature or API change, should be merged into features branch label Jun 15, 2015
fkohlgrueber pushed a commit to fkohlgrueber/pytest that referenced this issue Oct 27, 2018
This removes the hacky exception-based handling that didn't work across
statement boundaries.

Fixes pytest-dev#335
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement new feature or API change, should be merged into features branch
Projects
None yet
Development

No branches or pull requests

1 participant