MCPcopy Index your code
hub / github.com/python/cpython / test_stdin_stdout

Method test_stdin_stdout

Lib/test/test_json/test_tool.py:94–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92
93 @force_not_colorized
94 def test_stdin_stdout(self):
95 args = sys.executable, '-m', self.module
96 process = subprocess.run(args, input=self.data, capture_output=True, text=True, check=True)
97 self.assertEqual(process.stdout, self.expect)
98 self.assertEqual(process.stderr, '')
99
100 def _create_infile(self, data=None):
101 infile = os_helper.TESTFN

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected