diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-12-21 04:58:38 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-12-21 05:02:19 +0000 |
commit | ade1b2cc7b9fc7b0fc05f70e2c15c1d1d1e56ca8 (patch) | |
tree | a831e5f16a239ca33c7920bbada5f58928a954e5 /tests/test_quote.py | |
parent | f697410ab4aac2f7ac789e78efc4e5ac5dfb6f71 (diff) | |
download | psycopg2-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-x | tests/test_quote.py | 4 |
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() |