mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
gh-71339: Use new assertion methods in tests (GH-129046)
This commit is contained in:
parent
bb244fd33d
commit
2602d8ae98
117 changed files with 407 additions and 445 deletions
|
|
@ -265,8 +265,8 @@ def test_iterator(self):
|
|||
memio = self.ioclass(buf * 10)
|
||||
|
||||
self.assertEqual(iter(memio), memio)
|
||||
self.assertTrue(hasattr(memio, '__iter__'))
|
||||
self.assertTrue(hasattr(memio, '__next__'))
|
||||
self.assertHasAttr(memio, '__iter__')
|
||||
self.assertHasAttr(memio, '__next__')
|
||||
i = 0
|
||||
for line in memio:
|
||||
self.assertEqual(line, buf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue