mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.9] bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021) (GH-28023)
(cherry picked from commit 07d3d54)
This commit is contained in:
parent
1046cd06b0
commit
dab74d68e3
3 changed files with 7 additions and 3 deletions
|
|
@ -395,6 +395,9 @@ class MyIter:
|
|||
def __init__(self):
|
||||
self.value = 5
|
||||
|
||||
def __iter__(self):
|
||||
return self
|
||||
|
||||
def __next__(self):
|
||||
if self.value == 10:
|
||||
raise StopIteration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue