Skip to content

Commit 7a31438

Browse files
committed
resolve regex error for test_xsqlite_if_exists
1 parent 2a856db commit 7a31438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/test_sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4412,7 +4412,7 @@ def test_xsqlite_if_exists(sqlite_buildin):
44124412
sql.to_sql(
44134413
frame=df_if_exists_1, con=sqlite_buildin, name=table_name, if_exists="fail"
44144414
)
4415-
msg = "Table 'table_if_exists' already exists"
4415+
msg = f"Table '{table_name}' already exists"
44164416
with pytest.raises(ValueError, match=msg):
44174417
sql.to_sql(
44184418
frame=df_if_exists_1,

0 commit comments

Comments
 (0)