1 new commit in pytest: https://bitbucket.org/hpk42/pytest/commits/6720c03fd0da/ Changeset: 6720c03fd0da User: hpk42 Date: 2013-10-01 14:30:53 Summary: fix typos (thanks @faassen) Affected #: 1 file
diff -r 5fe4b94c395dce2a857408cc2a7e478138388dcb -r 6720c03fd0dafceda84710d6958bf5f6708bb032 doc/en/yieldfixture.txt --- a/doc/en/yieldfixture.txt +++ b/doc/en/yieldfixture.txt @@ -8,7 +8,7 @@ .. regendoc:wipe -pytest-2.4 allows fixture functions to seemlessly use a ``yield`` instead +pytest-2.4 allows fixture functions to seamlessly use a ``yield`` instead of a ``return`` statement to provide a fixture value while otherwise fully supporting all other fixture features. @@ -92,7 +92,7 @@ However, there are also limitations or foreseeable irritations: -- usually ``yield`` is typically used for producing multiple values. +- usually ``yield`` is used for producing multiple values. But fixture functions can only yield exactly one value. Yielding a second fixture value will get you an error. It's possible we can evolve pytest to allow for producing Repository URL: https://bitbucket.org/hpk42/pytest/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit