python.raises examples are unclear #586
Labels
type: docs
documentation improvement, missing or needing clarification
type: enhancement
new feature or API change, should be merged into features branch
Originally reported by: Laszlo Papp (BitBucket: lpapp_polatis, GitHub: lpapp_polatis)
From the following page:
http://pytest.org/latest/assert.html
and
My first thoughts have been:
But then, I was enlightened that this ought to be inside a test function, yet it has not been clear to me, especially since the former example was right after an import. Yes, I am aware of that import can happen anywhere in python, but it was not my first thought that pytest would be imported somewhere in a test function rather than outside "globally".
I think it would be nice to make these examples a bit clearer.
The text was updated successfully, but these errors were encountered: