diff --git a/tests/runtests.py b/tests/runtests.py index 9aa96f20fc..fbe20807ce 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -100,8 +100,7 @@ class TestRunner: self.output(1, "Creating test database") try: cursor.execute("CREATE DATABASE %s" % TEST_DATABASE_NAME) - except Exception, e: - self.output(0, "There was an error creating the test database:%s " % str(e)) + except: confirm = raw_input("The test database, %s, already exists. Type 'yes' to delete it, or 'no' to cancel: " % TEST_DATABASE_NAME) if confirm == 'yes': cursor.execute("DROP DATABASE %s" % TEST_DATABASE_NAME)