File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -3940,8 +3940,7 @@ def test_readrc_current_dir(self):
3940
3940
rc_path = os .path .join (cwd , ".pdbrc" )
3941
3941
with open (rc_path , "w" ) as f :
3942
3942
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" )
3945
3944
3946
3945
def test_readrc_cwd_is_home (self ):
3947
3946
with os_helper .EnvironmentVarGuard () as env :
@@ -3952,7 +3951,6 @@ def test_readrc_cwd_is_home(self):
3952
3951
with open (rc_path , "w" ) as f :
3953
3952
f .write ("invalid" )
3954
3953
self .assertEqual (pdb .Pdb ().rcLines , ["invalid" ])
3955
- self .assertEqual (len (pdb .Pdb ().rcLines ), 1 )
3956
3954
3957
3955
def test_header (self ):
3958
3956
stdout = StringIO ()
You can’t perform that action at this time.
0 commit comments