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
c6c5ece7
Kaydet (Commit)
c6c5ece7
authored
Ara 04, 2003
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Typo repair; added some comments and horizontal whitespace.
üst
da6081fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
test_support.py
Lib/test/test_support.py
+10
-9
No files found.
Lib/test/test_support.py
Dosyayı görüntüle @
c6c5ece7
...
@@ -130,23 +130,24 @@ else:
...
@@ -130,23 +130,24 @@ else:
if
isinstance
(
''
,
unicode
):
if
isinstance
(
''
,
unicode
):
# python -U
# python -U
# XXX perhaps unicode() should accept Unicode strings?
# XXX perhaps unicode() should accept Unicode strings?
TESTFN_UNICODE
=
"@test-
\xe0\xf2
"
TESTFN_UNICODE
=
"@test-
\xe0\xf2
"
else
:
else
:
TESTFN_UNICODE
=
unicode
(
"@test-
\xe0\xf2
"
,
"latin-1"
)
# 2 latin characters.
# 2 latin characters.
TESTFN_ENCODING
=
sys
.
getfilesystemencoding
()
TESTFN_UNICODE
=
unicode
(
"@test-
\xe0\xf2
"
,
"latin-1"
)
# TESTFN_UNICODE_UNENCODEABLE is a filename that should *not* be
TESTFN_ENCODING
=
sys
.
getfilesystemencoding
()
# TESTFN_UNICODE_UNENCODEABLE is a filename that should *not* be
# able to be encoded by *either* the default or filesystem encoding.
# able to be encoded by *either* the default or filesystem encoding.
# This test really only makes sense on Windows NT platforms
# This test really only makes sense on Windows NT platforms
# which have special Unicode support in posixmodule.
# which have special Unicode support in posixmodule.
if
not
hasattr
(
sys
,
"getwindowsversion"
)
or
\
if
(
not
hasattr
(
sys
,
"getwindowsversion"
)
or
sys
.
getwindowsversion
()[
3
]
<
2
:
sys
.
getwindowsversion
()[
3
]
<
2
):
# 0=win32s or 1=9x/ME
TESTFN_UNICODE_UNENCODABLE
=
None
TESTFN_UNICODE_UNENCOD
E
ABLE
=
None
else
:
else
:
# Japanese characters (I think - from bug 846133)
# Japanese characters (I think - from bug 846133)
TESTFN_UNICODE_UNENCODEABLE
=
u"@test-
\u5171\u6709\u3055\u308c\u308b
"
TESTFN_UNICODE_UNENCODEABLE
=
u"@test-
\u5171\u6709\u3055\u308c\u308b
"
try
:
try
:
# XXX - Note - should be using TESTFN_ENCODING here - but for
# XXX - Note - should be using TESTFN_ENCODING here - but for
# Windows, "mbcs" currently always operates as if in
# Windows, "mbcs" currently always operates as if in
# errors=ignore' mode - hence we get '?' characters rather than
# errors=ignore' mode - hence we get '?' characters rather than
# the exception. 'Latin1' operates as we expect - ie, fails.
# the exception. 'Latin1' operates as we expect - ie, fails.
# See [ 850997 ] mbcs encoding ignores errors
# See [ 850997 ] mbcs encoding ignores errors
...
...
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