Added "versionadded" for doctest_encoding ini option to docs.

This commit is contained in:
Wheerd 2016-11-30 18:01:00 +01:00
parent f8fef07b4c
commit 2edfc805af
1 changed files with 9 additions and 7 deletions

View File

@ -11,16 +11,18 @@ can change the pattern by issuing::
on the command line. Since version ``2.9``, ``--doctest-glob`` on the command line. Since version ``2.9``, ``--doctest-glob``
can be given multiple times in the command-line. can be given multiple times in the command-line.
You can specify the encoding that will be used for those doctest files .. versionadded:: 3.1
using the ``doctest_encoding`` ini option:
.. code-block:: ini You can specify the encoding that will be used for those doctest files
using the ``doctest_encoding`` ini option:
.. code-block:: ini
# content of pytest.ini # content of pytest.ini
[pytest] [pytest]
doctest_encoding = latin1 doctest_encoding = latin1
The default encoding is UTF-8. The default encoding is UTF-8.
You can also trigger running of doctests You can also trigger running of doctests
from docstrings in all python modules (including regular from docstrings in all python modules (including regular