summaryrefslogtreecommitdiff
path: root/tests/test_dates.py
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-04-20 23:12:21 +0000
committerJames Henstridge <james@jamesh.id.au>2008-04-20 23:12:21 +0000
commit2f3f4c1258ee6455b8b956c9f9d70a372b5a80f5 (patch)
tree21cecf1551cdf0b1958ebfba9e1fd5a3f008e313 /tests/test_dates.py
parent962c5a9a5f359908311cbe0b37b5f257256c4cf5 (diff)
downloadpsycopg2-2f3f4c1258ee6455b8b956c9f9d70a372b5a80f5.tar.gz
2008-04-21 Jorgen Austvik <Jorgen.Austvik@sun.com>
* tests/*.py: use the DSN constructed in tests/__init__.py. * tests/__init__.py: allow setting the host, port and user for the DSN used by the tests through the environment.
Diffstat (limited to 'tests/test_dates.py')
-rw-r--r--tests/test_dates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_dates.py b/tests/test_dates.py
index 303391b..7c55555 100644
--- a/tests/test_dates.py
+++ b/tests/test_dates.py
@@ -9,7 +9,7 @@ import tests
class CommonDatetimeTestsMixin:
def execute(self, *args):
- conn = psycopg2.connect("dbname=%s" % tests.dbname)
+ conn = psycopg2.connect(tests.dsn)
curs = conn.cursor()
curs.execute(*args)
return curs.fetchone()[0]