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

Method test_fail_help_cli

Lib/test/test_pydoc/test_pydoc.py:691–697  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

689 self.assertNotIn('Built-in subclasses', text)
690
691 def test_fail_help_cli(self):
692 elines = (missing_pattern % 'abd').splitlines()
693 with spawn_python("-c" "help()") as proc:
694 out, _ = proc.communicate(b"abd")
695 olines = out.decode().splitlines()[-9:-6]
696 olines[0] = olines[0].removeprefix('help> ')
697 self.assertEqual(elines, olines)
698
699 def test_fail_help_output_redirect(self):
700 with StringIO() as buf:

Callers

nothing calls this directly

Calls 6

spawn_pythonFunction · 0.90
splitlinesMethod · 0.45
communicateMethod · 0.45
decodeMethod · 0.45
removeprefixMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected