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
ecf93c76
Kaydet (Commit)
ecf93c76
authored
Haz 26, 2005
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test cases for doctest.
üst
5284b532
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
doctest.py
Lib/doctest.py
+1
-0
test_doctest.py
Lib/test/test_doctest.py
+3
-0
No files found.
Lib/doctest.py
Dosyayı görüntüle @
ecf93c76
...
@@ -2476,6 +2476,7 @@ def script_from_examples(s):
...
@@ -2476,6 +2476,7 @@ def script_from_examples(s):
blah
blah
#
#
# Ho hum
# Ho hum
<BLANKLINE>
"""
"""
output
=
[]
output
=
[]
for
piece
in
DocTestParser
()
.
parse
(
s
):
for
piece
in
DocTestParser
()
.
parse
(
s
):
...
...
Lib/test/test_doctest.py
Dosyayı görüntüle @
ecf93c76
...
@@ -1517,6 +1517,7 @@ words and expected output are converted to comments:
...
@@ -1517,6 +1517,7 @@ words and expected output are converted to comments:
## 44
## 44
#
#
# Yee ha!
# Yee ha!
<BLANKLINE>
>>> name = 'test.test_doctest.SampleNewStyleClass'
>>> name = 'test.test_doctest.SampleNewStyleClass'
>>> print doctest.testsource(test.test_doctest, name)
>>> print doctest.testsource(test.test_doctest, name)
...
@@ -1525,6 +1526,7 @@ words and expected output are converted to comments:
...
@@ -1525,6 +1526,7 @@ words and expected output are converted to comments:
## 1
## 1
## 2
## 2
## 3
## 3
<BLANKLINE>
>>> name = 'test.test_doctest.SampleClass.a_classmethod'
>>> name = 'test.test_doctest.SampleClass.a_classmethod'
>>> print doctest.testsource(test.test_doctest, name)
>>> print doctest.testsource(test.test_doctest, name)
...
@@ -1534,6 +1536,7 @@ words and expected output are converted to comments:
...
@@ -1534,6 +1536,7 @@ words and expected output are converted to comments:
print SampleClass(0).a_classmethod(10)
print SampleClass(0).a_classmethod(10)
# Expected:
# Expected:
## 12
## 12
<BLANKLINE>
"""
"""
def
test_debug
():
r"""
def
test_debug
():
r"""
...
...
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