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

Method test_basic_command

Lib/test/test_gdb/test_misc.py:33–46  ·  view source on GitHub ↗

Verify that the "py-list" command works

(self)

Source from the content-addressed store, hash-verified

31 self.assertEndsWith(actual, expected)
32
33 def test_basic_command(self):
34 'Verify that the "py-list" command works'
35 bt = self.get_stack_trace(script=SAMPLE_SCRIPT,
36 cmds_after_breakpoint=['py-list'])
37
38 self.assertListing(' 5 \n'
39 ' 6 def bar(a, b, c):\n'
40 ' 7 baz(a, b, c)\n'
41 ' 8 \n'
42 ' 9 def baz(*args):\n'
43 ' >10 id(42)\n'
44 ' 11 \n'
45 ' 12 foo(1, 2, 3)\n',
46 bt)
47
48 def test_one_abs_arg(self):
49 'Verify the "py-list" command with one absolute argument'

Callers

nothing calls this directly

Calls 2

assertListingMethod · 0.95
get_stack_traceMethod · 0.80

Tested by

no test coverage detected