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

Method test_jsonlines

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

Source from the content-addressed store, hash-verified

152
153 @force_not_colorized
154 def test_jsonlines(self):
155 args = sys.executable, '-m', self.module, '--json-lines'
156 process = subprocess.run(args, input=self.jsonlines_raw, capture_output=True, text=True, check=True)
157 self.assertEqual(process.stdout, self.jsonlines_expect)
158 self.assertEqual(process.stderr, '')
159
160 def test_help_flag(self):
161 rc, out, err = assert_python_ok('-m', self.module, '-h',

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected