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 dc39a59 commit 6f036bbCopy full SHA for 6f036bb
Lib/test/test_file.py
@@ -247,8 +247,7 @@ def testIteration(self):
247
# Test for appropriate errors mixing read* and iteration
248
for methodname, args in methods:
249
f = self.open(TESTFN, 'rb')
250
- if next(f) != filler:
251
- self.fail, "Broken testfile"
+ self.assertEqual(next(f), filler)
252
meth = getattr(f, methodname)
253
meth(*args) # This simply shouldn't fail
254
f.close()
0 commit comments