[3.12] gh-112087: Fix reduce logic for the empty reverse iterator for list (gh-115471)

This commit is contained in:
Donghee Na 2024-02-15 03:44:26 +09:00 committed by GitHub
parent 7d9ce3c867
commit 5ec52c35eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 8 deletions

View file

@ -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: