From 0dc7d4058c5466adb23710712e2b51069dc17464 Mon Sep 17 00:00:00 2001 From: jlgijsbers Date: Sun, 26 Oct 2003 14:43:51 +0000 Subject: [PATCH] Fix some attributes. Note that this causes the test to fail with an error, while it just wouldn't run before. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1946 57a73879-2fb5-44c3-a270-3262357dd7e2 --- test/test_postgresql.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_postgresql.py b/test/test_postgresql.py index a5308a4..f96663a 100644 --- a/test/test_postgresql.py +++ b/test/test_postgresql.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_postgresql.py,v 1.1 2003-10-25 22:53:26 richard Exp $ +# $Id: test_postgresql.py,v 1.2 2003-10-26 14:43:51 jlgijsbers Exp $ import unittest, os, shutil, time @@ -27,7 +27,7 @@ from db_test_base import DBTest, ROTest, config, SchemaTest, nodbconfig, \ from roundup import backends class postgresqlOpener: - if hasattr(backends, 'metakit'): + if hasattr(backends, 'postgresql'): from roundup.backends import postgresql as module def tearDown(self): @@ -55,7 +55,7 @@ def test_suite(): try: # Check if we can run postgresql tests import psycopg - db = psycopg.Database(nodbconfig, 'admin') + db = postgresql.Database(nodbconfig, 'admin') db.conn.select_db(config.POSTGRESQL_DBNAME) db.sql("SHOW TABLES"); tables = db.sql_fetchall() @@ -66,7 +66,7 @@ def test_suite(): db.sql("DROP DATABASE %s" % config.POSTGRESQL_DBNAME) db.sql("CREATE DATABASE %s" % config.POSTGRESQL_DBNAME) db.close() - except (MySQLdb.ProgrammingError, DatabaseError), msg: + except (psycopg.ProgrammingError, DatabaseError), msg: print "Skipping postgresql tests (%s)"%msg else: print 'Including postgresql tests' -- 2.30.2