From fd5e248eec1f3f39769d77105f8c1dbfc5339ee0 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 15 Apr 2012 15:13:44 +0000 Subject: setup_publication() had the "DROP TABLE IF EXISTS" exception problem too. svn path=/trunk/; revision=4420 --- rpkid/tests/smoketest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpkid/tests/smoketest.py') 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, -- cgit v1.2.3