mirror of
https://github.com/python/cpython.git
synced 2025-08-09 11:29:45 +00:00
[3.12] gh-112087: Fix reduce logic for the empty reverse iterator for list (gh-115471)
This commit is contained in:
parent
7d9ce3c867
commit
5ec52c35eb
3 changed files with 9 additions and 8 deletions
|
@ -302,7 +302,7 @@ class TestCase(unittest.TestCase):
|
|||
# listiter_reduce_general
|
||||
self.assertEqual(
|
||||
run("reversed", orig["reversed"](list(range(8)))),
|
||||
(iter, ([],))
|
||||
(reversed, ([],))
|
||||
)
|
||||
|
||||
for case in types:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue