Skip to content

Commit 3c0f6bc

Browse files
author
Richard Jones
committed
fix to postgresql test harness
1 parent 200eef0 commit 3c0f6bc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_postgresql.py

Lines changed: 4 additions & 3 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.8 2004-03-25 02:16:08 richard Exp $
18+
# $Id: test_postgresql.py,v 1.9 2004-05-05 11:22:01 richard Exp $
1919

2020
import unittest
2121

@@ -109,8 +109,9 @@ def test_suite():
109109
return suite
110110

111111
# make sure we start with a clean slate
112-
from roundup.backends.back_postgresql import db_nuke
113-
db_nuke(config, 1)
112+
from roundup.backends.back_postgresql import db_nuke, db_exists
113+
if db_exists(config):
114+
db_nuke(config, 1)
114115

115116
# TODO: Check if we can run postgresql tests
116117
print 'Including postgresql tests'

0 commit comments

Comments
 (0)