aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpkid/tests/smoketest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpkid/tests/smoketest.py b/rpkid/tests/smoketest.py
index acc483c7..b8a8b0b4 100644
--- a/rpkid/tests/smoketest.py
+++ b/rpkid/tests/smoketest.py
@@ -1186,7 +1186,7 @@ def setup_publication(pubd_sql):
try:
cur.execute(sql)
except Exception:
- if not sql.upper().startswith("DROP TABLE"):
+ if "DROP TABLE IF EXISTS" not in sql.upper():
raise
db.close()
d = { "pubd_name" : pubd_name,