fix typos

This commit is contained in:
holger krekel 2012-08-11 20:02:34 +02:00
parent 935761f098
commit f4963270c6
1 changed files with 5 additions and 5 deletions

View File

@ -438,8 +438,8 @@ resource instance is created and its tests are run. Among other things,
this eases testing of applications which create and use global state. this eases testing of applications which create and use global state.
The following example uses two parametrized funcargs, one of which is The following example uses two parametrized funcargs, one of which is
scoped on a per-module basis, and all the functions perform ``print`` call scoped on a per-module basis, and all the functions perform ``print`` call s
it to document the flow of calls:: to show the flow of calls::
# content of test_module.py # content of test_module.py
import pytest import pytest
@ -508,8 +508,8 @@ resource was executed before the ``mod2`` resource was setup.
The ``testcontext`` object may be used by `@pytest.factory`_ or The ``testcontext`` object may be used by `@pytest.factory`_ or
:ref:`@pytest.setup <setup>` marked functions. It contains :ref:`@pytest.setup <setup>` marked functions. It contains
information relating to the test context within which the function information relating to the test context within which the marked
executes. Moreover, you can call function executes. Moreover, you can call
``testcontext.addfinalizer(myfinalizer)`` in order to trigger a call to ``testcontext.addfinalizer(myfinalizer)`` in order to trigger a call to
``myfinalizer`` after the last test in the test context has executed. ``myfinalizer`` after the last test in the test context has executed.
If passed to a parametrized factory ``testcontext.param`` will contain a If passed to a parametrized factory ``testcontext.param`` will contain a
@ -693,7 +693,7 @@ Compatibility notes
============================================================ ============================================================
**Funcargs** were originally introduced to pytest-2.0. In pytest-2.3 **Funcargs** were originally introduced to pytest-2.0. In pytest-2.3
the mechanism were extended and refined. Here are some related notes: the mechanism was extended and refined:
* previously funcarg factories were specified with a special * previously funcarg factories were specified with a special
``pytest_funcarg__NAME`` prefix instead of using the ``pytest_funcarg__NAME`` prefix instead of using the