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
2f01e239
Kaydet (Commit)
2f01e239
authored
Ara 26, 2012
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #16702: Skip proxies for localhost in urllib2_localnet tests
üst
cf4710c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
test_urllib2_localnet.py
Lib/test/test_urllib2_localnet.py
+8
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_urllib2_localnet.py
Dosyayı görüntüle @
2f01e239
...
...
@@ -5,7 +5,9 @@ import urllib2
import
BaseHTTPServer
import
unittest
import
hashlib
from
test
import
test_support
mimetools
=
test_support
.
import_module
(
'mimetools'
,
deprecated
=
True
)
threading
=
test_support
.
import_module
(
'threading'
)
...
...
@@ -346,6 +348,12 @@ class TestUrlopen(BaseTestCase):
for transparent redirection have been written.
"""
def
setUp
(
self
):
proxy_handler
=
urllib2
.
ProxyHandler
({})
opener
=
urllib2
.
build_opener
(
proxy_handler
)
urllib2
.
install_opener
(
opener
)
super
(
TestUrlopen
,
self
)
.
setUp
()
def
start_server
(
self
,
responses
):
handler
=
GetRequestHandler
(
responses
)
...
...
Misc/NEWS
Dosyayı görüntüle @
2f01e239
...
...
@@ -164,6 +164,9 @@ Core and Builtins
Library
-------
- Issue #16702: test_urllib2_localnet tests now correctly ignores proxies for
localhost tests.
- Issue #16713: Fix the parsing of tel url with params using urlparse module.
- Issue #16443: Add docstrings to regular expression match objects.
...
...
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