Fixed the documentation for doctest_encoding.

This commit is contained in:
Manuel Krebber 2016-11-30 14:17:54 +01:00
parent 1f62e5b5a0
commit b7fb9fac91
1 changed files with 6 additions and 2 deletions

View File

@ -12,9 +12,13 @@ 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 You can specify the encoding that will be used for those doctest files
using the ``--doctest-encoding`` command line option:: using the ``doctest_encoding`` ini option:
pytest --doctest-encoding='ascii' .. code-block:: ini
# content of pytest.ini
[pytest]
doctest_encoding = latin1
The default encoding is UTF-8. The default encoding is UTF-8.