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
6327e848
Kaydet (Commit)
6327e848
authored
Tem 26, 2008
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix more buildbot failures on test_locale.
üst
524f4135
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
test_locale.py
Lib/test/test_locale.py
+10
-5
No files found.
Lib/test/test_locale.py
Dosyayı görüntüle @
6327e848
...
...
@@ -224,10 +224,10 @@ class TestCNumberFormatting(CCookedTest, BaseFormattingTest):
self
.
_test_format
(
"
%9.2
f"
,
12345.67
,
grouping
=
True
,
out
=
' 12345.67'
)
if
sys
.
platform
!=
'sunos5'
:
class
TestStringMethods
(
BaseLocalizedTest
):
locale_type
=
locale
.
LC_CTYPE
class
TestStringMethods
(
BaseLocalizedTest
):
locale_type
=
locale
.
LC_CTYPE
if
sys
.
platform
!=
'sunos5'
and
not
sys
.
platform
.
startswith
(
"win"
):
# Test BSD Rune locale's bug for isctype functions.
def
test_isspace
(
self
):
...
...
@@ -275,12 +275,17 @@ class TestMiscellaneous(unittest.TestCase):
def
test_main
():
tests
=
[
TestMiscellaneous
,
TestEnUSNumberFormatting
,
TestCNumberFormatting
]
tests
=
[
TestMiscellaneous
,
TestEnUSNumberFormatting
,
TestCNumberFormatting
]
# TestSkipped can't be raised inside unittests, handle it manually instead
try
:
get_enUS_locale
()
except
TestSkipped
as
e
:
print
"Some tests will be disabled:
%
s"
%
e
if
verbose
:
print
"Some tests will be disabled:
%
s"
%
e
else
:
tests
+=
[
TestNumberFormatting
,
TestStringMethods
]
run_unittest
(
*
tests
)
...
...
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