MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_fail_help_cli

Method test_fail_help_cli

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

Source from the content-addressed store, hash-verified

695 self.assertNotIn('Built-in subclasses', text)
696
697 def test_fail_help_cli(self):
698 elines = (missing_pattern % 'abd').splitlines()
699 with spawn_python("-c" "help()") as proc:
700 out, _ = proc.communicate(b"abd")
701 olines = out.decode().splitlines()[-9:-6]
702 olines[0] = olines[0].removeprefix('help> ')
703 self.assertEqual(elines, olines)
704
705 def test_fail_help_output_redirect(self):
706 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