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
bdfa2e69
Kaydet (Commit)
bdfa2e69
authored
Nis 28, 2011
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport test from #11926.
üst
bd0933a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
test_pydoc.py
Lib/test/test_pydoc.py
+9
-1
No files found.
Lib/test/test_pydoc.py
Dosyayı görüntüle @
bdfa2e69
...
@@ -6,6 +6,7 @@ import subprocess
...
@@ -6,6 +6,7 @@ import subprocess
import
re
import
re
import
pydoc
import
pydoc
import
inspect
import
inspect
import
keyword
import
unittest
import
unittest
import
xml.etree
import
xml.etree
import
test.test_support
import
test.test_support
...
@@ -351,9 +352,16 @@ class TestDescriptions(unittest.TestCase):
...
@@ -351,9 +352,16 @@ class TestDescriptions(unittest.TestCase):
self
.
assertIn
(
'_asdict'
,
helptext
)
self
.
assertIn
(
'_asdict'
,
helptext
)
class
TestHelper
(
unittest
.
TestCase
):
def
test_keywords
(
self
):
self
.
assertEqual
(
sorted
(
pydoc
.
Helper
.
keywords
),
sorted
(
keyword
.
kwlist
))
def
test_main
():
def
test_main
():
test
.
test_support
.
run_unittest
(
PyDocDocTest
,
test
.
test_support
.
run_unittest
(
PyDocDocTest
,
TestDescriptions
)
TestDescriptions
,
TestHelper
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
test_main
()
test_main
()
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