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
366c570d
Kaydet (Commit)
366c570d
authored
Şub 13, 2015
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23418: Add missing entries to http.server.__all__.
Patch by Martin Panter.
üst
a25c542c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
server.py
Lib/http/server.py
+4
-1
test_httpservers.py
Lib/test/test_httpservers.py
+14
-0
No files found.
Lib/http/server.py
Dosyayı görüntüle @
366c570d
...
...
@@ -82,7 +82,10 @@ XXX To do:
__version__
=
"0.6"
__all__
=
[
"HTTPServer"
,
"BaseHTTPRequestHandler"
]
__all__
=
[
"HTTPServer"
,
"BaseHTTPRequestHandler"
,
"SimpleHTTPRequestHandler"
,
"CGIHTTPRequestHandler"
,
]
import
html
import
http.client
...
...
Lib/test/test_httpservers.py
Dosyayı görüntüle @
366c570d
...
...
@@ -760,6 +760,19 @@ class SimpleHTTPRequestHandlerTestCase(unittest.TestCase):
self
.
assertEqual
(
path
,
self
.
translated
)
class
MiscTestCase
(
unittest
.
TestCase
):
def
test_all
(
self
):
expected
=
[]
blacklist
=
{
'executable'
,
'nobody_uid'
,
'test'
}
for
name
in
dir
(
server
):
if
name
.
startswith
(
'_'
)
or
name
in
blacklist
:
continue
module_object
=
getattr
(
server
,
name
)
if
getattr
(
module_object
,
'__module__'
,
None
)
==
'http.server'
:
expected
.
append
(
name
)
self
.
assertCountEqual
(
server
.
__all__
,
expected
)
def
test_main
(
verbose
=
None
):
cwd
=
os
.
getcwd
()
try
:
...
...
@@ -769,6 +782,7 @@ def test_main(verbose=None):
SimpleHTTPServerTestCase
,
CGIHTTPServerTestCase
,
SimpleHTTPRequestHandlerTestCase
,
MiscTestCase
,
)
finally
:
os
.
chdir
(
cwd
)
...
...
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