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
2a20f9be
Kaydet (Commit)
2a20f9be
authored
Tem 26, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport 0398f07d4827 (fix for weird buildbot failures)
üst
ba2eab25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
test_codecs.py
Lib/test/test_codecs.py
+1
-1
test_locale.py
Lib/test/test_locale.py
+3
-3
No files found.
Lib/test/test_codecs.py
Dosyayı görüntüle @
2a20f9be
...
@@ -1234,7 +1234,7 @@ class CodecsModuleTest(unittest.TestCase):
...
@@ -1234,7 +1234,7 @@ class CodecsModuleTest(unittest.TestCase):
def
test_lookup_issue1813
(
self
):
def
test_lookup_issue1813
(
self
):
# Issue #1813: under Turkish locales, lookup of some codecs failed
# Issue #1813: under Turkish locales, lookup of some codecs failed
# because 'I' is lowercased as "ı" (dotless i)
# because 'I' is lowercased as "ı" (dotless i)
oldlocale
=
locale
.
g
etlocale
(
locale
.
LC_CTYPE
)
oldlocale
=
locale
.
s
etlocale
(
locale
.
LC_CTYPE
)
self
.
addCleanup
(
locale
.
setlocale
,
locale
.
LC_CTYPE
,
oldlocale
)
self
.
addCleanup
(
locale
.
setlocale
,
locale
.
LC_CTYPE
,
oldlocale
)
try
:
try
:
locale
.
setlocale
(
locale
.
LC_CTYPE
,
'tr_TR'
)
locale
.
setlocale
(
locale
.
LC_CTYPE
,
'tr_TR'
)
...
...
Lib/test/test_locale.py
Dosyayı görüntüle @
2a20f9be
...
@@ -393,16 +393,16 @@ class TestMiscellaneous(unittest.TestCase):
...
@@ -393,16 +393,16 @@ class TestMiscellaneous(unittest.TestCase):
def
test_getsetlocale_issue1813
(
self
):
def
test_getsetlocale_issue1813
(
self
):
# Issue #1813: setting and getting the locale under a Turkish locale
# Issue #1813: setting and getting the locale under a Turkish locale
oldlocale
=
locale
.
getlocale
(
)
oldlocale
=
locale
.
setlocale
(
locale
.
LC_CTYPE
)
self
.
addCleanup
(
locale
.
setlocale
,
locale
.
LC_CTYPE
,
oldlocale
)
self
.
addCleanup
(
locale
.
setlocale
,
locale
.
LC_CTYPE
,
oldlocale
)
try
:
try
:
locale
.
setlocale
(
locale
.
LC_CTYPE
,
'tr_TR'
)
locale
.
setlocale
(
locale
.
LC_CTYPE
,
'tr_TR'
)
except
locale
.
Error
:
except
locale
.
Error
:
# Unsupported locale on this system
# Unsupported locale on this system
self
.
skipTest
(
'test needs Turkish locale'
)
self
.
skipTest
(
'test needs Turkish locale'
)
loc
=
locale
.
getlocale
()
loc
=
locale
.
getlocale
(
locale
.
LC_CTYPE
)
locale
.
setlocale
(
locale
.
LC_CTYPE
,
loc
)
locale
.
setlocale
(
locale
.
LC_CTYPE
,
loc
)
self
.
assertEqual
(
loc
,
locale
.
getlocale
())
self
.
assertEqual
(
loc
,
locale
.
getlocale
(
locale
.
LC_CTYPE
))
def
test_main
():
def
test_main
():
...
...
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