mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Issue #16148: implemented PEP 424
This commit is contained in:
parent
ef08fb1f04
commit
aa9a79d279
14 changed files with 161 additions and 82 deletions
|
@ -1723,9 +1723,8 @@ class TestVariousIteratorArgs(unittest.TestCase):
|
|||
class LengthTransparency(unittest.TestCase):
|
||||
|
||||
def test_repeat(self):
|
||||
from test.test_iterlen import len
|
||||
self.assertEqual(len(repeat(None, 50)), 50)
|
||||
self.assertRaises(TypeError, len, repeat(None))
|
||||
self.assertEqual(operator.length_hint(repeat(None, 50)), 50)
|
||||
self.assertEqual(operator.length_hint(repeat(None), 12), 12)
|
||||
|
||||
class RegressionTests(unittest.TestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue