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
d9fb4a97
Kaydet (Commit)
d9fb4a97
authored
Şub 07, 2017
tarafından
Mariatta Wijaya
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #29371: Clarify bitwise OR operation in doctest option flags.
üst
ed45f739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
doctest.rst
Doc/library/doctest.rst
+7
-6
No files found.
Doc/library/doctest.rst
Dosyayı görüntüle @
d9fb4a97
...
...
@@ -530,8 +530,8 @@ Option Flags
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
or'
ed
together
and
passed
to
various
functions
.
The
names
can
also
be
used
in
:
ref
:`
doctest
directives
<
doctest
-
directives
>`.
:ref:`bitwise ORed <bitwise>` together and passed to various functions.
The names can also be used in
:ref:`doctest directives <doctest-directives>`.
The first group of options define test semantics, controlling aspects of how
doctest decides whether actual output matches an example'
s
expected
output
:
...
...
@@ -1161,10 +1161,11 @@ reporting flags specific to :mod:`unittest` support, via this function:
the option flags specified for the test case when the :class:`DocTestCase`
instance was constructed. If no reporting flags were specified (which is the
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
:class:`DocTestRunner` instance created to run the doctest. If any reporting
flags were specified when the :class:`DocTestCase` instance was constructed,
:mod:`doctest`'
s
:
mod
:`
unittest
`
reporting
flags
are
ignored
.
:ref:`bitwise ORed <bitwise>` into the option flags, and the option flags
so augmented are passed to the :class:`DocTestRunner` instance created to
run the doctest. If any reporting flags were specified when the
: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
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