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
b4e9087e
Kaydet (Commit)
b4e9087e
authored
Mar 15, 2017
tarafından
Daniel Himmelstein
Kaydeden (comit)
Berker Peksag
Mar 15, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix stderr bug in json.tool test (#346)
See
https://github.com/python/cpython/pull/201#discussion_r103229425
.
üst
6c3d5274
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
test_tool.py
Lib/test/test_json/test_tool.py
+4
-5
No files found.
Lib/test/test_json/test_tool.py
Dosyayı görüntüle @
b4e9087e
...
...
@@ -2,7 +2,7 @@ import os
import
sys
import
textwrap
import
unittest
import
subprocess
from
subprocess
import
Popen
,
PIPE
from
test
import
support
from
test.support.script_helper
import
assert_python_ok
...
...
@@ -61,12 +61,11 @@ class TestTool(unittest.TestCase):
"""
)
def
test_stdin_stdout
(
self
):
with
subprocess
.
Popen
(
(
sys
.
executable
,
'-m'
,
'json.tool'
),
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
)
as
proc
:
args
=
sys
.
executable
,
'-m'
,
'json.tool'
with
Popen
(
args
,
stdin
=
PIPE
,
stdout
=
PIPE
,
stderr
=
PIPE
)
as
proc
:
out
,
err
=
proc
.
communicate
(
self
.
data
.
encode
())
self
.
assertEqual
(
out
.
splitlines
(),
self
.
expect
.
encode
()
.
splitlines
())
self
.
assertEqual
(
err
,
None
)
self
.
assertEqual
(
err
,
b
''
)
def
_create_infile
(
self
):
infile
=
support
.
TESTFN
...
...
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