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
c0983856
Kaydet (Commit)
c0983856
authored
May 17, 2010
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test_main_invalid_unicode() of test_sys for ASCII locale encoding
It should fix sparc 3.x and 3.1 failures.
üst
1465cc28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
test_sys.py
Lib/test/test_sys.py
+3
-4
No files found.
Lib/test/test_sys.py
Dosyayı görüntüle @
c0983856
...
@@ -152,7 +152,7 @@ class SysModuleTest(unittest.TestCase):
...
@@ -152,7 +152,7 @@ class SysModuleTest(unittest.TestCase):
stdout
,
stderr
=
process
.
communicate
()
stdout
,
stderr
=
process
.
communicate
()
self
.
assertEqual
(
process
.
returncode
,
1
)
self
.
assertEqual
(
process
.
returncode
,
1
)
self
.
assertTrue
(
stderr
.
startswith
(
expected
),
self
.
assertTrue
(
stderr
.
startswith
(
expected
),
"
%
r doesn't start with
%
r"
%
(
stderr
,
expected
))
"
%
s doesn't start with
%
s"
%
(
ascii
(
stderr
),
ascii
(
expected
)
))
# test that stderr buffer if flushed before the exit message is written
# test that stderr buffer if flushed before the exit message is written
# into stderr
# into stderr
...
@@ -485,9 +485,8 @@ class SysModuleTest(unittest.TestCase):
...
@@ -485,9 +485,8 @@ class SysModuleTest(unittest.TestCase):
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
code
],
stderr
=
subprocess
.
PIPE
)
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
code
],
stderr
=
subprocess
.
PIPE
)
stdout
,
stderr
=
p
.
communicate
()
stdout
,
stderr
=
p
.
communicate
()
self
.
assertEqual
(
p
.
returncode
,
1
)
self
.
assertEqual
(
p
.
returncode
,
1
)
self
.
assert_
(
stderr
.
startswith
(
b
"UnicodeEncodeError: "
self
.
assert_
(
b
"UnicodeEncodeError:"
in
stderr
,
b
"'utf-8' codec can't encode character '
\\
udcff' in "
"
%
r not in
%
s"
%
(
b
"UniodeEncodeError:"
,
ascii
(
stderr
)))
b
"position 7: surrogates not allowed"
),
stderr
)
def
test_sys_flags
(
self
):
def
test_sys_flags
(
self
):
self
.
assertTrue
(
sys
.
flags
)
self
.
assertTrue
(
sys
.
flags
)
...
...
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