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
cfb01a5a
Kaydet (Commit)
cfb01a5a
authored
Eki 10, 2012
tarafından
Chris Jerdonek
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #12947: Backport doctest documentation change from 3.3.
üst
a11c1fcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doctest.rst
Doc/library/doctest.rst
+3
-3
No files found.
Doc/library/doctest.rst
Dosyayı görüntüle @
cfb01a5a
...
@@ -580,11 +580,11 @@ doctest decides whether actual output matches an example's expected output:
...
@@ -580,11 +580,11 @@ doctest decides whether actual output matches an example's expected output:
both
of
these
variations
will
work
with
the
flag
specified
,
regardless
of
both
of
these
variations
will
work
with
the
flag
specified
,
regardless
of
whether
the
test
is
run
under
Python
2.7
or
Python
3.2
(
or
later
versions
)::
whether
the
test
is
run
under
Python
2.7
or
Python
3.2
(
or
later
versions
)::
>>>
raise
CustomError
(
'message'
)
#
doctest
:
+
IGNORE_EXCEPTION_DETAIL
>>>
raise
CustomError
(
'message'
)
Traceback
(
most
recent
call
last
):
Traceback
(
most
recent
call
last
):
CustomError
:
message
CustomError
:
message
>>>
raise
CustomError
(
'message'
)
#
doctest
:
+
IGNORE_EXCEPTION_DETAIL
>>>
raise
CustomError
(
'message'
)
Traceback
(
most
recent
call
last
):
Traceback
(
most
recent
call
last
):
my_module
.
CustomError
:
message
my_module
.
CustomError
:
message
...
@@ -597,7 +597,7 @@ doctest decides whether actual output matches an example's expected output:
...
@@ -597,7 +597,7 @@ doctest decides whether actual output matches an example's expected output:
earlier (those releases do not support :ref:`doctest directives
earlier (those releases do not support :ref:`doctest directives
<doctest-directives>` and ignore them as irrelevant comments). For example::
<doctest-directives>` and ignore them as irrelevant comments). For example::
>>> (1, 2)[3] = '
moo
'
#doctest: +IGNORE_EXCEPTION_DETAIL
>>> (1, 2)[3] = '
moo
'
Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "<stdin>", line 1, in ?
TypeError: object doesn'
t
support
item
assignment
TypeError: object doesn'
t
support
item
assignment
...
...
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