bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)
(cherry picked from commit 07d3d54f4e84b1259b800884b202701f69e408d8)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/sqlite3/test/dbapi.py
index 5d521d0..a8dcd7e 100644
--- a/Lib/sqlite3/test/dbapi.py
+++ b/Lib/sqlite3/test/dbapi.py
@@ -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