Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(86427)

Unified Diff: Lib/test/test_json/test_tool.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_io.py ('k') | Lib/test/test_keyword.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_json/test_tool.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_json/test_tool.py Wed Mar 02 00:01:35 2016 +0000
@@ -55,16 +55,17 @@ class TestTool(unittest.TestCase):
},
{
"morefield": false,
"field": "yes"
}
]
""")
+ @unittest.skipUnless(hasattr(subprocess, 'Popen'), "test requires subprocess.Popen()")
def test_stdin_stdout(self):
with subprocess.Popen(
(sys.executable, '-m', 'json.tool'),
stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
out, err = proc.communicate(self.data.encode())
self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
self.assertEqual(err, None)
« no previous file with comments | « Lib/test/test_io.py ('k') | Lib/test/test_keyword.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+