summaryrefslogtreecommitdiff
path: root/tests/test_quote.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-21 04:58:38 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-12-21 05:02:19 +0000
commitade1b2cc7b9fc7b0fc05f70e2c15c1d1d1e56ca8 (patch)
treea831e5f16a239ca33c7920bbada5f58928a954e5 /tests/test_quote.py
parentf697410ab4aac2f7ac789e78efc4e5ac5dfb6f71 (diff)
downloadpsycopg2-ade1b2cc7b9fc7b0fc05f70e2c15c1d1d1e56ca8.tar.gz
Test suite converted into a proper package.
Dropped cyclic import from modules to tests: they were only working because a second copy of the package was found in the project dir. Use relative import so that 2to3 can do a good conversion.
Diffstat (limited to 'tests/test_quote.py')
-rwxr-xr-xtests/test_quote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_quote.py b/tests/test_quote.py
index 95c5d7a..83662c7 100755
--- a/tests/test_quote.py
+++ b/tests/test_quote.py
@@ -3,7 +3,7 @@ from testutils import unittest
import psycopg2
import psycopg2.extensions
-import tests
+from testconfig import dsn
class QuotingTestCase(unittest.TestCase):
r"""Checks the correct quoting of strings and binary objects.
@@ -24,7 +24,7 @@ class QuotingTestCase(unittest.TestCase):
http://www.postgresql.org/docs/8.1/static/runtime-config-compatible.html
"""
def setUp(self):
- self.conn = psycopg2.connect(tests.dsn)
+ self.conn = psycopg2.connect(dsn)
def tearDown(self):
self.conn.close()