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
2dab865f
Kaydet (Commit)
2dab865f
authored
Kas 26, 2009
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
When open_urlresource() fails, HTTPException is another possible error
üst
0306894f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
test_multibytecodec_support.py
Lib/test/test_multibytecodec_support.py
+2
-1
test_normalization.py
Lib/test/test_normalization.py
+2
-1
No files found.
Lib/test/test_multibytecodec_support.py
Dosyayı görüntüle @
2dab865f
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
import
sys
,
codecs
import
sys
,
codecs
import
unittest
,
re
import
unittest
,
re
from
httplib
import
HTTPException
from
test
import
test_support
from
test
import
test_support
from
StringIO
import
StringIO
from
StringIO
import
StringIO
...
@@ -268,7 +269,7 @@ class TestBase_Mapping(unittest.TestCase):
...
@@ -268,7 +269,7 @@ class TestBase_Mapping(unittest.TestCase):
unittest
.
TestCase
.
__init__
(
self
,
*
args
,
**
kw
)
unittest
.
TestCase
.
__init__
(
self
,
*
args
,
**
kw
)
try
:
try
:
self
.
open_mapping_file
()
# test it to report the error early
self
.
open_mapping_file
()
# test it to report the error early
except
IOError
:
except
(
IOError
,
HTTPException
)
:
self
.
skipTest
(
"Could not retrieve "
+
self
.
mapfileurl
)
self
.
skipTest
(
"Could not retrieve "
+
self
.
mapfileurl
)
def
open_mapping_file
(
self
):
def
open_mapping_file
(
self
):
...
...
Lib/test/test_normalization.py
Dosyayı görüntüle @
2dab865f
from
test.test_support
import
run_unittest
,
open_urlresource
from
test.test_support
import
run_unittest
,
open_urlresource
import
unittest
import
unittest
from
httplib
import
HTTPException
import
sys
import
sys
import
os
import
os
from
unicodedata
import
normalize
,
unidata_version
from
unicodedata
import
normalize
,
unidata_version
...
@@ -43,7 +44,7 @@ class NormalizationTest(unittest.TestCase):
...
@@ -43,7 +44,7 @@ class NormalizationTest(unittest.TestCase):
# Hit the exception early
# Hit the exception early
try
:
try
:
open_urlresource
(
TESTDATAURL
)
open_urlresource
(
TESTDATAURL
)
except
IOError
:
except
(
IOError
,
HTTPException
)
:
self
.
skipTest
(
"Could not retrieve "
+
TESTDATAURL
)
self
.
skipTest
(
"Could not retrieve "
+
TESTDATAURL
)
for
line
in
open_urlresource
(
TESTDATAURL
):
for
line
in
open_urlresource
(
TESTDATAURL
):
if
'#'
in
line
:
if
'#'
in
line
:
...
...
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