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?) _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit