aboutsummaryrefslogtreecommitdiff
path: root/rpkid/tests/smoketest.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-04-15 15:13:44 +0000
committerRob Austein <sra@hactrn.net>2012-04-15 15:13:44 +0000
commitfd5e248eec1f3f39769d77105f8c1dbfc5339ee0 (patch)
tree5cb61e9333f830dd57c50c6471d238b7e1659f3d /rpkid/tests/smoketest.py
parent1702f5b959b0bf329bd88b3f5b3f19c397560dc6 (diff)
setup_publication() had the "DROP TABLE IF EXISTS" exception problem
too. svn path=/trunk/; revision=4420
Diffstat (limited to 'rpkid/tests/smoketest.py')
-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,