Skip to content

Commit b8bb7a9

Browse files
committed
simplify asserts
1 parent 623d54d commit b8bb7a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_pdb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3940,8 +3940,7 @@ def test_readrc_current_dir(self):
39403940
rc_path = os.path.join(cwd, ".pdbrc")
39413941
with open(rc_path, "w") as f:
39423942
f.write("invalid")
3943-
self.assertEqual(pdb.Pdb().rcLines[0], "invalid")
3944-
self.assertEqual(len(pdb.Pdb().rcLines), 1)
3943+
self.assertEqual(pdb.Pdb().rcLines[-1], "invalid")
39453944

39463945
def test_readrc_cwd_is_home(self):
39473946
with os_helper.EnvironmentVarGuard() as env:
@@ -3952,7 +3951,6 @@ def test_readrc_cwd_is_home(self):
39523951
with open(rc_path, "w") as f:
39533952
f.write("invalid")
39543953
self.assertEqual(pdb.Pdb().rcLines, ["invalid"])
3955-
self.assertEqual(len(pdb.Pdb().rcLines), 1)
39563954

39573955
def test_header(self):
39583956
stdout = StringIO()

0 commit comments

Comments
 (0)