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
b3c169b0
Kaydet (Commit)
b3c169b0
authored
Kas 03, 2009
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Try to make test_wsgiref less fragile against environment changes by other tests
üst
5b54432b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
test_wsgiref.py
Lib/test/test_wsgiref.py
+8
-1
No files found.
Lib/test/test_wsgiref.py
Dosyayı görüntüle @
b3c169b0
...
@@ -9,7 +9,9 @@ from wsgiref.simple_server import WSGIServer, WSGIRequestHandler, demo_app
...
@@ -9,7 +9,9 @@ from wsgiref.simple_server import WSGIServer, WSGIRequestHandler, demo_app
from
wsgiref.simple_server
import
make_server
from
wsgiref.simple_server
import
make_server
from
StringIO
import
StringIO
from
StringIO
import
StringIO
from
SocketServer
import
BaseServer
from
SocketServer
import
BaseServer
import
re
,
sys
import
os
import
re
import
sys
from
test
import
test_support
from
test
import
test_support
...
@@ -386,6 +388,11 @@ class HeaderTests(TestCase):
...
@@ -386,6 +388,11 @@ class HeaderTests(TestCase):
class
ErrorHandler
(
BaseCGIHandler
):
class
ErrorHandler
(
BaseCGIHandler
):
"""Simple handler subclass for testing BaseHandler"""
"""Simple handler subclass for testing BaseHandler"""
# BaseHandler records the OS environment at import time, but envvars
# might have been changed later by other tests, which trips up
# HandlerTests.testEnviron().
os_environ
=
dict
(
os
.
environ
.
items
())
def
__init__
(
self
,
**
kw
):
def
__init__
(
self
,
**
kw
):
setup_testing_defaults
(
kw
)
setup_testing_defaults
(
kw
)
BaseCGIHandler
.
__init__
(
BaseCGIHandler
.
__init__
(
...
...
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