(self)
| 4101 | self.assertEqual(pdb.Pdb().rcLines[-1], "invalid") |
| 4102 | |
| 4103 | def test_readrc_cwd_is_home(self): |
| 4104 | with os_helper.EnvironmentVarGuard() as env: |
| 4105 | env.unset("HOME") |
| 4106 | with os_helper.temp_cwd() as cwd, patch("os.path.expanduser"): |
| 4107 | rc_path = os.path.join(cwd, ".pdbrc") |
| 4108 | os.path.expanduser.return_value = rc_path |
| 4109 | with open(rc_path, "w") as f: |
| 4110 | f.write("invalid") |
| 4111 | self.assertEqual(pdb.Pdb().rcLines, ["invalid"]) |
| 4112 | |
| 4113 | def test_header(self): |
| 4114 | stdout = StringIO() |