mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Reformatted doc for doctest_default_flags (#2471).
This commit is contained in:
@@ -175,12 +175,15 @@ There are also these config values for customizing the doctest extension:
|
||||
|
||||
.. confval:: doctest_default_flags
|
||||
|
||||
By default, these options are enabled: ``ELLIPSIS`` (allowing you to put
|
||||
ellipses in the expected output that match anything in the actual output),
|
||||
``IGNORE_EXCEPTION_DETAIL`` (everything following the leftmost colon and any
|
||||
module information in the exception name is ignored),
|
||||
``DONT_ACCEPT_TRUE_FOR_1`` (by default, doctest accepts "True" in the output
|
||||
where "1" is given -- this is a relic of pre-Python 2.2 times).
|
||||
By default, these options are enabled:
|
||||
|
||||
- ``ELLIPSIS``, allowing you to put ellipses in the expected output that
|
||||
match anything in the actual output;
|
||||
- ``IGNORE_EXCEPTION_DETAIL``, causing everything following the leftmost
|
||||
colon and any module information in the exception name to be ignored;
|
||||
- ``DONT_ACCEPT_TRUE_FOR_1``, rejecting "True" in the output where "1" is
|
||||
given -- the default behavior of accepting this substitution is a relic of
|
||||
pre-Python 2.2 times.
|
||||
|
||||
.. versionadded:: 1.5
|
||||
|
||||
|
Reference in New Issue
Block a user