diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-29 10:43:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-29 10:43:48 (GMT) |
commit | a49398b643b3a2e6f9cc39729c528eb1e4385b1a (patch) | |
tree | 4291d80638a8eb4fe17e601ab0849f092cd58b63 /Lib/sqlite3/test/regression.py | |
parent | 779b9aef4fb2750f57ce07f0efbc8ce8406e43ab (diff) | |
download | cpython-a49398b643b3a2e6f9cc39729c528eb1e4385b1a.zip cpython-a49398b643b3a2e6f9cc39729c528eb1e4385b1a.tar.gz cpython-a49398b643b3a2e6f9cc39729c528eb1e4385b1a.tar.bz2 |
bpo-25130: Make SQLite tests more compatible with PyPy (GH-28021)
(cherry picked from commit 07d3d54f4e84b1259b800884b202701f69e408d8)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/sqlite3/test/regression.py')
-rw-r--r-- | Lib/sqlite3/test/regression.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sqlite3/test/regression.py b/Lib/sqlite3/test/regression.py index 417a531..70d0ff9 100644 --- a/Lib/sqlite3/test/regression.py +++ b/Lib/sqlite3/test/regression.py @@ -125,11 +125,11 @@ class RegressionTests(unittest.TestCase): con = sqlite.connect(":memory:",detect_types=sqlite.PARSE_DECLTYPES) con.execute("create table foo(bar timestamp)") con.execute("insert into foo(bar) values (?)", (datetime.datetime.now(),)) - con.execute(SELECT) + con.execute(SELECT).close() con.execute("drop table foo") con.execute("create table foo(bar integer)") con.execute("insert into foo(bar) values (5)") - con.execute(SELECT) + con.execute(SELECT).close() def test_bind_mutating_list(self): # Issue41662: Crash when mutate a list of parameters during iteration. |