Scratching an itch. Love py.test!
--HG-- branch : bmcorser/scratching-an-itch-love-pytest-1404943207227
This commit is contained in:
parent
abfedd692e
commit
d88a3712c5
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
.. _yieldfixture:
|
.. _yieldfixture:
|
||||||
|
|
||||||
Fixture functions using "yield" / context manager integration
|
Fixture functions using "yield" / context manager integration
|
||||||
|
@ -54,7 +53,7 @@ Let's run it with output capturing disabled::
|
||||||
|
|
||||||
1 passed in 0.00 seconds
|
1 passed in 0.00 seconds
|
||||||
|
|
||||||
We can also seemlessly use the new syntax with ``with`` statements.
|
We can also seamlessly use the new syntax with ``with`` statements.
|
||||||
Let's simplify the above ``passwd`` fixture::
|
Let's simplify the above ``passwd`` fixture::
|
||||||
|
|
||||||
# content of test_yield2.py
|
# content of test_yield2.py
|
||||||
|
|
Loading…
Reference in New Issue