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

Method test_invalid_cmd_line_options

Lib/test/test_pdb.py:4241–4245  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4239 self.assertIn(f"Error: {temp_dir} is a directory", stdout)
4240
4241 def test_invalid_cmd_line_options(self):
4242 stdout, stderr = self._run_pdb(["-c"], "", expected_returncode=2)
4243 self.assertIn(f"pdb: error: argument -c/--command: expected one argument", stderr.split('\n')[1])
4244 stdout, stderr = self._run_pdb(["--spam", "-m", "pdb"], "", expected_returncode=2)
4245 self.assertIn(f"pdb: error: unrecognized arguments: --spam", stderr.split('\n')[1])
4246
4247 def test_blocks_at_first_code_line(self):
4248 script = """

Callers

nothing calls this directly

Calls 3

_run_pdbMethod · 0.95
assertInMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected