diff test/test_postgresql.py @ 2254:1995c97912c2

fix to postgresql test harness
author Richard Jones <richard@users.sourceforge.net>
date Wed, 05 May 2004 11:22:01 +0000
parents f5755353e972
children 351304739aae
line wrap: on
line diff
--- a/test/test_postgresql.py	Wed May 05 02:05:59 2004 +0000
+++ b/test/test_postgresql.py	Wed May 05 11:22:01 2004 +0000
@@ -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.8 2004-03-25 02:16:08 richard Exp $ 
+# $Id: test_postgresql.py,v 1.9 2004-05-05 11:22:01 richard Exp $ 
 
 import unittest
 
@@ -109,8 +109,9 @@
         return suite
 
     # make sure we start with a clean slate
-    from roundup.backends.back_postgresql import db_nuke
-    db_nuke(config, 1)
+    from roundup.backends.back_postgresql import db_nuke, db_exists
+    if db_exists(config):
+        db_nuke(config, 1)
 
     # TODO: Check if we can run postgresql tests
     print 'Including postgresql tests'

Roundup Issue Tracker: http://roundup-tracker.org/