mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-120608: Make reversed iterator work with free-threading (#120971)
Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
4dcbe06fd2
commit
1fb7e2aeb7
4 changed files with 65 additions and 10 deletions
|
@ -2605,7 +2605,8 @@ class StrTest(string_tests.StringLikeTest,
|
|||
|
||||
def test_free_after_iterating(self):
|
||||
support.check_free_after_iterating(self, iter, str)
|
||||
support.check_free_after_iterating(self, reversed, str)
|
||||
if not support.Py_GIL_DISABLED:
|
||||
support.check_free_after_iterating(self, reversed, str)
|
||||
|
||||
def test_check_encoding_errors(self):
|
||||
# bpo-37388: str(bytes) and str.decode() must check encoding and errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue