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

Method test_pdbrc_empty_line

Lib/test/test_pdb.py:4008–4024  ·  view source on GitHub ↗

Test that empty lines in .pdbrc are ignored.

(self)

Source from the content-addressed store, hash-verified

4006 self.assertIn("-> b = 2", stdout)
4007
4008 def test_pdbrc_empty_line(self):
4009 """Test that empty lines in .pdbrc are ignored."""
4010
4011 script = textwrap.dedent("""
4012 a = 1
4013 b = 2
4014 c = 3
4015 """)
4016
4017 pdbrc = textwrap.dedent("""
4018 n
4019
4020 """)
4021
4022 stdout, stderr = self.run_pdb_script(script, 'q\n', pdbrc=pdbrc, remove_home=True)
4023 self.assertIn("b = 2", stdout)
4024 self.assertNotIn("c = 3", stdout)
4025
4026 def test_pdbrc_alias(self):
4027 script = textwrap.dedent("""

Callers

nothing calls this directly

Calls 4

run_pdb_scriptMethod · 0.95
assertInMethod · 0.80
assertNotInMethod · 0.80
dedentMethod · 0.45

Tested by

no test coverage detected