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
19b4a272
Kaydet (Commit)
19b4a272
authored
Agu 26, 2007
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cosmetics in error messages.
üst
fe82e165
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_unicode_file.py
Lib/test/test_unicode_file.py
+3
-3
No files found.
Lib/test/test_unicode_file.py
Dosyayı görüntüle @
19b4a272
...
@@ -13,7 +13,7 @@ try:
...
@@ -13,7 +13,7 @@ try:
except
(
UnicodeError
,
TypeError
):
except
(
UnicodeError
,
TypeError
):
# Either the file system encoding is None, or the file name
# Either the file system encoding is None, or the file name
# cannot be encoded in the file system encoding.
# cannot be encoded in the file system encoding.
raise
TestSkipped
(
"No Unicode filesystem semantics on this platform
.
"
)
raise
TestSkipped
(
"No Unicode filesystem semantics on this platform"
)
if
TESTFN_ENCODED
.
decode
(
TESTFN_ENCODING
)
!=
TESTFN_UNICODE
:
if
TESTFN_ENCODED
.
decode
(
TESTFN_ENCODING
)
!=
TESTFN_UNICODE
:
# The file system encoding does not support Latin-1
# The file system encoding does not support Latin-1
...
@@ -27,10 +27,10 @@ if TESTFN_ENCODED.decode(TESTFN_ENCODING) != TESTFN_UNICODE:
...
@@ -27,10 +27,10 @@ if TESTFN_ENCODED.decode(TESTFN_ENCODING) != TESTFN_UNICODE:
# MBCS will not report the error properly
# MBCS will not report the error properly
raise
UnicodeError
,
"mbcs encoding problem"
raise
UnicodeError
,
"mbcs encoding problem"
except
(
UnicodeError
,
TypeError
):
except
(
UnicodeError
,
TypeError
):
raise
TestSkipped
(
"Cannot find a suit
eable filename.
"
)
raise
TestSkipped
(
"Cannot find a suit
able filename
"
)
if
TESTFN_ENCODED
.
decode
(
TESTFN_ENCODING
)
!=
TESTFN_UNICODE
:
if
TESTFN_ENCODED
.
decode
(
TESTFN_ENCODING
)
!=
TESTFN_UNICODE
:
raise
TestSkipped
(
"Cannot find a suitable filename
.
"
)
raise
TestSkipped
(
"Cannot find a suitable filename"
)
def
remove_if_exists
(
filename
):
def
remove_if_exists
(
filename
):
if
os
.
path
.
exists
(
filename
):
if
os
.
path
.
exists
(
filename
):
...
...
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