bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)

(cherry picked from commit 07d3d54f4e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-08-29 03:43:48 -07:00 committed by GitHub
parent 779b9aef4f
commit a49398b643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -398,6 +398,9 @@ class MyIter:
def __init__(self):
self.value = 5
def __iter__(self):
return self
def __next__(self):
if self.value == 10:
raise StopIteration