pgbouncer/tests.py demands PostgreSQL 8.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python PGBouncer |
In Progress
|
Low
|
Colin Watson |
Bug Description
The following diff will get the tests running on Ubuntu with other versions of PostgreSQL (tested with 9.1), but testscenarios probably ought to be used to test against all installed versions.
=== modified file 'pgbouncer/
--- pgbouncer/tests.py 2011-10-28 11:45:32 +0000
+++ pgbouncer/tests.py 2012-08-14 21:53:31 +0000
@@ -14,6 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://
+import glob
import os
import unittest
@@ -26,7 +27,9 @@
from pgbouncer.fixture import PGBouncerFixture
# A 'just-works' workaround for Ubuntu not exposing initdb to the main PATH.
-os.environ['PATH'] = os.environ['PATH'] + ':/usr/
+os.environ['PATH'] = os.pathsep.join(
+ os.environ.
+ glob.glob(
def test_suite():
Related branches
- William Grant (community): Approve (code)
-
Diff: 538 lines (+54/-373)9 files modified.bzrignore (+2/-7)
NEWS.txt (+6/-0)
README (+13/-20)
bootstrap.py (+0/-259)
buildout.cfg (+0/-35)
pgbouncer/tests.py (+20/-34)
setup.py (+5/-3)
tox.ini (+8/-0)
versions.cfg (+0/-15)
Changed in python-pgbouncer: | |
status: | Triaged → In Progress |
assignee: | nobody → Colin Watson (cjwatson) |