Skip to content

Commit d575eea

Browse files
authored
TST: Change sqlite test query string values to single quotes (#61000)
1 parent 6bd74fa commit d575eea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: pandas/tests/io/test_sql.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -4282,11 +4282,11 @@ def test_xsqlite_execute_fail(sqlite_buildin):
42824282
cur.execute(create_sql)
42834283

42844284
with sql.pandasSQL_builder(sqlite_buildin) as pandas_sql:
4285-
pandas_sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)')
4286-
pandas_sql.execute('INSERT INTO test VALUES("foo", "baz", 2.567)')
4285+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'bar', 1.234)")
4286+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'baz', 2.567)")
42874287

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

42914291

42924292
def test_xsqlite_execute_closed_connection():
@@ -4304,7 +4304,7 @@ def test_xsqlite_execute_closed_connection():
43044304
cur.execute(create_sql)
43054305

43064306
with sql.pandasSQL_builder(conn) as pandas_sql:
4307-
pandas_sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)')
4307+
pandas_sql.execute("INSERT INTO test VALUES('foo', 'bar', 1.234)")
43084308

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

0 commit comments

Comments
 (0)