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/testutils.py | |
parent | b3cd125d2757872e9337d8df3d8e286345a67450 (diff) | |
download | psycopg2-a478ba9a4785eac4839f0c4f65e90f6557d42c65.tar.gz |
Fixed tests failing on Python 2.6
Diffstat (limited to 'tests/testutils.py')
-rw-r--r-- | tests/testutils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testutils.py b/tests/testutils.py index d0a34bc..1dd0c99 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -122,6 +122,9 @@ class ConnectingTestCase(unittest.TestCase): Should raise a skip test if not available, but guard for None on old Python versions. """ + if repl_dsn is None: + return self.skipTest("replication tests disabled by default") + if 'dsn' not in kwargs: kwargs['dsn'] = repl_dsn import psycopg2 |