File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -241,8 +241,7 @@ def testIteration(self):
241
241
# Test for appropriate errors mixing read* and iteration
242
242
for methodname , args in methods :
243
243
f = self .open (TESTFN , 'rb' )
244
- if next (f ) != filler :
245
- self .fail , "Broken testfile"
244
+ self .assertEqual (next (f ), filler )
246
245
meth = getattr (f , methodname )
247
246
meth (* args ) # This simply shouldn't fail
248
247
f .close ()
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ def test_basic_auth_success(self):
306
306
try :
307
307
self .assertTrue (urllib .request .urlopen (self .server_url ))
308
308
except urllib .error .HTTPError :
309
- self .fail ("Basic auth failed for the url: %s" , self .server_url )
309
+ self .fail ("Basic auth failed for the url: %s" % self .server_url )
310
310
311
311
def test_basic_auth_httperror (self ):
312
312
ah = urllib .request .HTTPBasicAuthHandler ()
You can’t perform that action at this time.
0 commit comments