From b7fb9fac91069d2d193b78265567f0d3c5673669 Mon Sep 17 00:00:00 2001 From: Manuel Krebber Date: Wed, 30 Nov 2016 14:17:54 +0100 Subject: [PATCH] Fixed the documentation for doctest_encoding. --- doc/en/doctest.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/en/doctest.rst b/doc/en/doctest.rst index 93d7c30c4..5967ba047 100644 --- a/doc/en/doctest.rst +++ b/doc/en/doctest.rst @@ -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.