Skip to content

Commit 2edfc80

Browse files
committed
Added "versionadded" for doctest_encoding ini option to docs.
1 parent f8fef07 commit 2edfc80

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

doc/en/doctest.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ can change the pattern by issuing::
1111
on the command line. Since version ``2.9``, ``--doctest-glob``
1212
can be given multiple times in the command-line.
1313

14-
You can specify the encoding that will be used for those doctest files
15-
using the ``doctest_encoding`` ini option:
14+
.. versionadded:: 3.1
1615

17-
.. code-block:: ini
16+
You can specify the encoding that will be used for those doctest files
17+
using the ``doctest_encoding`` ini option:
1818

19-
# content of pytest.ini
20-
[pytest]
21-
doctest_encoding = latin1
19+
.. code-block:: ini
20+
21+
# content of pytest.ini
22+
[pytest]
23+
doctest_encoding = latin1
2224
23-
The default encoding is UTF-8.
25+
The default encoding is UTF-8.
2426

2527
You can also trigger running of doctests
2628
from docstrings in all python modules (including regular

0 commit comments

Comments
 (0)