We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 623d54d commit b8bb7a9Copy full SHA for b8bb7a9
1 file changed
Lib/test/test_pdb.py
@@ -3940,8 +3940,7 @@ def test_readrc_current_dir(self):
3940
rc_path = os.path.join(cwd, ".pdbrc")
3941
with open(rc_path, "w") as f:
3942
f.write("invalid")
3943
- self.assertEqual(pdb.Pdb().rcLines[0], "invalid")
3944
- self.assertEqual(len(pdb.Pdb().rcLines), 1)
+ self.assertEqual(pdb.Pdb().rcLines[-1], "invalid")
3945
3946
def test_readrc_cwd_is_home(self):
3947
with os_helper.EnvironmentVarGuard() as env:
@@ -3952,7 +3951,6 @@ def test_readrc_cwd_is_home(self):
3952
3951
3953
3954
self.assertEqual(pdb.Pdb().rcLines, ["invalid"])
3955
3956
3957
def test_header(self):
3958
stdout = StringIO()
0 commit comments