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
fd4903bf
Kaydet (Commit)
fd4903bf
authored
Eki 17, 2009
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move restoration of the os.environ object into the context manager where it belongs
üst
87c03b31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
test_httpservers.py
Lib/test/test_httpservers.py
+0
-1
test_support.py
Lib/test/test_support.py
+1
-0
No files found.
Lib/test/test_httpservers.py
Dosyayı görüntüle @
fd4903bf
...
@@ -60,7 +60,6 @@ class BaseTestCase(unittest.TestCase):
...
@@ -60,7 +60,6 @@ class BaseTestCase(unittest.TestCase):
self
.
lock
.
release
()
self
.
lock
.
release
()
self
.
thread
.
stop
()
self
.
thread
.
stop
()
os
.
environ
.
__exit__
()
os
.
environ
.
__exit__
()
os
.
environ
=
os
.
environ
.
_environ
def
request
(
self
,
uri
,
method
=
'GET'
,
body
=
None
,
headers
=
{}):
def
request
(
self
,
uri
,
method
=
'GET'
,
body
=
None
,
headers
=
{}):
self
.
connection
=
httplib
.
HTTPConnection
(
'localhost'
,
self
.
PORT
)
self
.
connection
=
httplib
.
HTTPConnection
(
'localhost'
,
self
.
PORT
)
...
...
Lib/test/test_support.py
Dosyayı görüntüle @
fd4903bf
...
@@ -576,6 +576,7 @@ class EnvironmentVarGuard(UserDict.DictMixin):
...
@@ -576,6 +576,7 @@ class EnvironmentVarGuard(UserDict.DictMixin):
del
self
.
_environ
[
k
]
del
self
.
_environ
[
k
]
else
:
else
:
self
.
_environ
[
k
]
=
v
self
.
_environ
[
k
]
=
v
os
.
environ
=
self
.
_environ
class
DirsOnSysPath
(
object
):
class
DirsOnSysPath
(
object
):
...
...
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