Skip to content

Commit ef18a02

Browse files
author
Johannes Gijsbers
committed
Fix some attributes.
Note that this causes the test to fail with an error, while it just wouldn't run before.
1 parent 6db8aba commit ef18a02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_postgresql.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: test_postgresql.py,v 1.1 2003-10-25 22:53:26 richard Exp $
18+
# $Id: test_postgresql.py,v 1.2 2003-10-26 14:43:51 jlgijsbers Exp $
1919

2020
import unittest, os, shutil, time
2121

@@ -27,7 +27,7 @@
2727
from roundup import backends
2828

2929
class postgresqlOpener:
30-
if hasattr(backends, 'metakit'):
30+
if hasattr(backends, 'postgresql'):
3131
from roundup.backends import postgresql as module
3232

3333
def tearDown(self):
@@ -55,7 +55,7 @@ def test_suite():
5555
try:
5656
# Check if we can run postgresql tests
5757
import psycopg
58-
db = psycopg.Database(nodbconfig, 'admin')
58+
db = postgresql.Database(nodbconfig, 'admin')
5959
db.conn.select_db(config.POSTGRESQL_DBNAME)
6060
db.sql("SHOW TABLES");
6161
tables = db.sql_fetchall()
@@ -66,7 +66,7 @@ def test_suite():
6666
db.sql("DROP DATABASE %s" % config.POSTGRESQL_DBNAME)
6767
db.sql("CREATE DATABASE %s" % config.POSTGRESQL_DBNAME)
6868
db.close()
69-
except (MySQLdb.ProgrammingError, DatabaseError), msg:
69+
except (psycopg.ProgrammingError, DatabaseError), msg:
7070
print "Skipping postgresql tests (%s)"%msg
7171
else:
7272
print 'Including postgresql tests'

0 commit comments

Comments
 (0)