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
c2ca32d9
Kaydet (Commit)
c2ca32d9
authored
Mar 17, 2003
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Test for UnicodeError instead of ImportError to determine whether
the test file name can be encoded.
üst
54e7d2c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test_unicode_file.py
Lib/test/test_unicode_file.py
+1
-1
No files found.
Lib/test/test_unicode_file.py
Dosyayı görüntüle @
c2ca32d9
...
@@ -7,7 +7,7 @@ from test.test_support import verify, TestSkipped, TESTFN_UNICODE
...
@@ -7,7 +7,7 @@ from test.test_support import verify, TestSkipped, TESTFN_UNICODE
from
test.test_support
import
TESTFN_ENCODING
from
test.test_support
import
TESTFN_ENCODING
try
:
try
:
TESTFN_ENCODED
=
TESTFN_UNICODE
.
encode
(
TESTFN_ENCODING
)
TESTFN_ENCODED
=
TESTFN_UNICODE
.
encode
(
TESTFN_ENCODING
)
except
(
Import
Error
,
TypeError
):
except
(
Unicode
Error
,
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."
)
...
...
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