diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-12-24 00:18:22 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-12-24 01:03:57 +0100 |
commit | a478ba9a4785eac4839f0c4f65e90f6557d42c65 (patch) | |
tree | 01504972bfd2aec0dd2a4ee75928b571f9da3dc8 /tests/test_module.py | |
parent | b3cd125d2757872e9337d8df3d8e286345a67450 (diff) | |
download | psycopg2-a478ba9a4785eac4839f0c4f65e90f6557d42c65.tar.gz |
Fixed tests failing on Python 2.6
Diffstat (limited to 'tests/test_module.py')
-rwxr-xr-x | tests/test_module.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_module.py b/tests/test_module.py index 1a9a19d..6a1606d 100755 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -119,8 +119,8 @@ class ConnectTestCase(unittest.TestCase): def test_int_port_param(self): psycopg2.connect(database='sony', port=6543) dsn = " %s " % self.args[0] - self.assertIn(" dbname=sony ", dsn) - self.assertIn(" port=6543 ", dsn) + self.assert_(" dbname=sony " in dsn, dsn) + self.assert_(" port=6543 " in dsn, dsn) def test_empty_param(self): psycopg2.connect(database='sony', password='') |