mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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:
parent
779b9aef4f
commit
a49398b643
2 changed files with 5 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue