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

Method test_convvar_completion

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

Source from the content-addressed store, hash-verified

5062 self.assertIn(b'special', output)
5063
5064 def test_convvar_completion(self):
5065 script = textwrap.dedent("""
5066 import pdb; pdb.Pdb().set_trace()
5067 """)
5068
5069 # Complete: $_frame
5070 input = b"$_fram\t\n"
5071
5072 # Complete: $_frame.f_lineno + 100
5073 input += b"$_frame.f_line\t + 100\n"
5074
5075 # Continue
5076 input += b"c\n"
5077
5078 output = run_pty(script, input)
5079
5080 self.assertIn(b'<frame at 0x', output)
5081 self.assertIn(b'102', output)
5082
5083 def test_local_namespace(self):
5084 script = textwrap.dedent("""

Callers

nothing calls this directly

Calls 3

run_ptyFunction · 0.90
assertInMethod · 0.80
dedentMethod · 0.45

Tested by

no test coverage detected