Skip to content

Commit e39262c

Browse files
committed
Issue python#29371: merge with 3.5
2 parents 2dfa6cb + 81b8977 commit e39262c

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

Doc/library/doctest.rst

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,9 @@ Option Flags
510510

511511
A number of option flags control various aspects of doctest's behavior.
512512
Symbolic names for the flags are supplied as module constants, which can be
513-
or'ed together and passed to various functions. The names can also be used in
514-
:ref:`doctest directives <doctest-directives>`, and may be passed to the
515-
doctest command line interface via the ``-o`` option.
513+
:ref:`bitwise ORed <bitwise>` together and passed to various functions.
514+
The names can also be used in :ref:`doctest directives <doctest-directives>`,
515+
and may be passed to the doctest command line interface via the ``-o`` option.
516516

517517
.. versionadded:: 3.4
518518
The ``-o`` command line option.
@@ -877,8 +877,9 @@ and :ref:`doctest-simple-testfile`.
877877
nothing at the end. In verbose mode, the summary is detailed, else the summary
878878
is very brief (in fact, empty if all tests passed).
879879

880-
Optional argument *optionflags* (default value 0) takes the bitwise-or of
881-
option flags. See section :ref:`doctest-options`.
880+
Optional argument *optionflags* (default value 0) takes the
881+
:ref:`bitwise OR <bitwise>` of option flags.
882+
See section :ref:`doctest-options`.
882883

883884
Optional argument *raise_on_error* defaults to false. If true, an exception is
884885
raised upon the first failure or unexpected exception in an example. This
@@ -1098,18 +1099,19 @@ reporting flags specific to :mod:`unittest` support, via this function:
10981099

10991100
Set the :mod:`doctest` reporting flags to use.
11001101

1101-
Argument *flags* takes the bitwise-or of option flags. See section
1102-
:ref:`doctest-options`. Only "reporting flags" can be used.
1102+
Argument *flags* takes the :ref:`bitwise OR <bitwise>` of option flags. See
1103+
section :ref:`doctest-options`. Only "reporting flags" can be used.
11031104

11041105
This is a module-global setting, and affects all future doctests run by module
11051106
:mod:`unittest`: the :meth:`runTest` method of :class:`DocTestCase` looks at
11061107
the option flags specified for the test case when the :class:`DocTestCase`
11071108
instance was constructed. If no reporting flags were specified (which is the
11081109
typical and expected case), :mod:`doctest`'s :mod:`unittest` reporting flags are
1109-
or'ed into the option flags, and the option flags so augmented are passed to the
1110-
:class:`DocTestRunner` instance created to run the doctest. If any reporting
1111-
flags were specified when the :class:`DocTestCase` instance was constructed,
1112-
:mod:`doctest`'s :mod:`unittest` reporting flags are ignored.
1110+
:ref:`bitwise ORed <bitwise>` into the option flags, and the option flags
1111+
so augmented are passed to the :class:`DocTestRunner` instance created to
1112+
run the doctest. If any reporting flags were specified when the
1113+
:class:`DocTestCase` instance was constructed, :mod:`doctest`'s
1114+
:mod:`unittest` reporting flags are ignored.
11131115

11141116
The value of the :mod:`unittest` reporting flags in effect before the function
11151117
was called is returned by the function.

0 commit comments

Comments
 (0)