diff test/test_postgresql.py @ 1920:f9316d2cd5ba

Fixed retirement of items in rdbms imports [SF#841355] Fixed bug in looking up journal of newly-created items in *dbm backends
author Richard Jones <richard@users.sourceforge.net>
date Fri, 14 Nov 2003 00:11:19 +0000
parents f255363e6d97
children b1704ba7be41
line wrap: on
line diff
--- a/test/test_postgresql.py	Thu Nov 13 06:03:42 2003 +0000
+++ b/test/test_postgresql.py	Fri Nov 14 00:11:19 2003 +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.3 2003-11-11 11:19:18 richard Exp $ 
+# $Id: test_postgresql.py,v 1.4 2003-11-14 00:11:19 richard Exp $ 
 
 import sys, unittest, os, shutil, time, popen2
 
@@ -68,7 +68,12 @@
         db_create()
 
     def tearDown(self):
+        self.nuke_database()
+
+    def nuke_database(self):
+        # clear out the database - easiest way is to nuke and re-created it
         db_nuke()
+        db_create()
 
 class postgresqlDBTest(postgresqlOpener, DBTest):
     def setUp(self):

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