Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
743376f4
Kaydet (Commit)
743376f4
authored
Şub 07, 2017
tarafından
Mariatta Wijaya
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #29371: merge with 3.6
üst
18d2c934
e39262cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
doctest.rst
Doc/library/doctest.rst
+13
-11
No files found.
Doc/library/doctest.rst
Dosyayı görüntüle @
743376f4
...
@@ -510,9 +510,9 @@ Option Flags
...
@@ -510,9 +510,9 @@ Option Flags
A
number
of
option
flags
control
various
aspects
of
doctest
's behavior.
A
number
of
option
flags
control
various
aspects
of
doctest
's behavior.
Symbolic names for the flags are supplied as module constants, which can be
Symbolic names for the flags are supplied as module constants, which can be
or'
ed
together
and
passed
to
various
functions
.
The
names
can
also
be
used
in
:ref:`bitwise ORed <bitwise>` together and passed to various functions.
:
ref
:`
doctest
directives
<
doctest
-
directives
>`,
and
may
be
passed
to
the
The names can also be used in :ref:`doctest directives <doctest-directives>`,
doctest
command
line
interface
via
the
``-
o
``
option
.
and may be passed to the
doctest command line interface via the ``-o`` option.
.. versionadded:: 3.4
.. versionadded:: 3.4
The ``-o`` command line option.
The ``-o`` command line option.
...
@@ -877,8 +877,9 @@ and :ref:`doctest-simple-testfile`.
...
@@ -877,8 +877,9 @@ and :ref:`doctest-simple-testfile`.
nothing at the end. In verbose mode, the summary is detailed, else the summary
nothing at the end. In verbose mode, the summary is detailed, else the summary
is very brief (in fact, empty if all tests passed).
is very brief (in fact, empty if all tests passed).
Optional argument *optionflags* (default value 0) takes the bitwise-or of
Optional argument *optionflags* (default value 0) takes the
option flags. See section :ref:`doctest-options`.
:ref:`bitwise OR <bitwise>` of option flags.
See section :ref:`doctest-options`.
Optional argument *raise_on_error* defaults to false. If true, an exception is
Optional argument *raise_on_error* defaults to false. If true, an exception is
raised upon the first failure or unexpected exception in an example. This
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:
...
@@ -1098,18 +1099,19 @@ reporting flags specific to :mod:`unittest` support, via this function:
Set the :mod:`doctest` reporting flags to use.
Set the :mod:`doctest` reporting flags to use.
Argument *flags* takes the
bitwise-or of option flags. See section
Argument *flags* takes the
:ref:`bitwise OR <bitwise>` of option flags. See
:ref:`doctest-options`. Only "reporting flags" can be used.
section
:ref:`doctest-options`. Only "
reporting
flags
" can be used.
This is a module-global setting, and affects all future doctests run by module
This is a module-global setting, and affects all future doctests run by module
:mod:`unittest`: the :meth:`runTest` method of :class:`DocTestCase` looks at
:mod:`unittest`: the :meth:`runTest` method of :class:`DocTestCase` looks at
the option flags specified for the test case when the :class:`DocTestCase`
the option flags specified for the test case when the :class:`DocTestCase`
instance was constructed. If no reporting flags were specified (which is the
instance was constructed. If no reporting flags were specified (which is the
typical and expected case), :mod:`doctest`'s :mod:`unittest` reporting flags are
typical and expected case), :mod:`doctest`'s :mod:`unittest` reporting flags are
or
'ed into the option flags, and the option flags so augmented are passed to the
:ref:`bitwise ORed <bitwise>` into the option flags, and the option flags
:class:`DocTestRunner` instance created to run the doctest. If any reporting
so augmented are passed to the :class:`DocTestRunner` instance created to
flags were specified when the :class:`DocTestCase` instance was constructed,
run the doctest. If any reporting flags were specified when the
:mod:`doctest`'
s
:
mod
:`
unittest
`
reporting
flags
are
ignored
.
:class:`DocTestCase` instance was constructed, :mod:`doctest`'s
:mod:`unittest` reporting flags are ignored.
The value of the :mod:`unittest` reporting flags in effect before the function
The value of the :mod:`unittest` reporting flags in effect before the function
was called is returned by the function.
was called is returned by the function.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment