Skip to content

Commit 2a8b0f8

Browse files
mroeschkemeeseeksmachine
authored andcommitted
Backport PR pandas-dev#61000: TST: Change sqlite test query string values to single quotes
1 parent 684a1a3 commit 2a8b0f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/io/test_sql.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -4255,11 +4255,11 @@ def test_xsqlite_execute_fail(sqlite_buildin):
42554255
cur.execute(create_sql)
42564256

42574257
with sql.pandasSQL_builder(sqlite_buildin) as pandas_sql:
4258-
pandas_sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)')
4259-
pandas_sql.execute('INSERT INTO test VALUES("foo", "baz", 2.567)')
4258+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'bar', 1.234)")
4259+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'baz', 2.567)")
42604260

42614261
with pytest.raises(sql.DatabaseError, match="Execution failed on sql"):
4262-
pandas_sql.execute('INSERT INTO test VALUES("foo", "bar", 7)')
4262+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'bar', 7)")
42634263

42644264

42654265
def test_xsqlite_execute_closed_connection():
@@ -4277,7 +4277,7 @@ def test_xsqlite_execute_closed_connection():
42774277
cur.execute(create_sql)
42784278

42794279
with sql.pandasSQL_builder(conn) as pandas_sql:
4280-
pandas_sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)')
4280+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'bar', 1.234)")
42814281

42824282
msg = "Cannot operate on a closed database."
42834283
with pytest.raises(sqlite3.ProgrammingError, match=msg):

0 commit comments

Comments
 (0)