Skip to content

Commit

Permalink
resolve regex error for test_xsqlite_if_exists
Browse files Browse the repository at this point in the history
  • Loading branch information
UmbertoFasci committed Dec 20, 2024
1 parent 2a856db commit 7a31438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -4412,7 +4412,7 @@ def test_xsqlite_if_exists(sqlite_buildin):
sql.to_sql(
frame=df_if_exists_1, con=sqlite_buildin, name=table_name, if_exists="fail"
)
msg = "Table 'table_if_exists' already exists"
msg = f"Table '{table_name}' already exists"
with pytest.raises(ValueError, match=msg):
sql.to_sql(
frame=df_if_exists_1,
Expand Down

0 comments on commit 7a31438

Please sign in to comment.