Skip to content

Commit

Permalink
Fixed the documentation for doctest_encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Krebber committed Nov 30, 2016
1 parent 1f62e5b commit b7fb9fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/en/doctest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ on the command line. Since version ``2.9``, ``--doctest-glob``
can be given multiple times in the command-line.

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.

Expand Down

0 comments on commit b7fb9fa

Please sign in to comment.