[Pytest-commit] Issue #591: Typo in "Assertions about expected exceptions" docs (hpk42/pytest)
Tom V
issues-reply at bitbucket.org
Sun Sep 14 23:40:19 CEST 2014
New issue 591: Typo in "Assertions about expected exceptions" docs
https://bitbucket.org/hpk42/pytest/issue/591/typo-in-assertions-about-expected
Tom V:
The [code block explaining accessing "actual exception info"](http://pytest.org/latest/assert.html#assertions-about-expected-exceptions) looks like it contains too many `f()`s. I think a single `f()` is all that's required here:
*and if you need to have access to the actual exception info you may use::*
with pytest.raises(RuntimeError) as excinfo:
def f():
f()
f()
# do checks related to excinfo.type, excinfo.value, excinfo.traceback
Happy to make a PR is we can agree what this is supposed to look like. (I also found a few spelling mistake in the docs, that could be fixed at the same time?)
More information about the pytest-commit
mailing list