diff options
| author | Sergey Shepelev <temotor@gmail.com> | 2015-03-05 16:32:40 +0300 |
|---|---|---|
| committer | Sergey Shepelev <temotor@gmail.com> | 2015-03-05 16:32:40 +0300 |
| commit | 8ca2b0d5ff27bf963db78c01bab77e679baa0abc (patch) | |
| tree | 9ff77b27986f9ac31a07bef14caa44ed6b1804af /tests/db_pool_test.py | |
| parent | 84b535becafcdc932ab905061f5fa2fbea35dc74 (diff) | |
| download | eventlet-tm4.tar.gz | |
tests: move some into isolatedtm4
Diffstat (limited to 'tests/db_pool_test.py')
| -rw-r--r-- | tests/db_pool_test.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/db_pool_test.py b/tests/db_pool_test.py index 9fc9ebc..76f7108 100644 --- a/tests/db_pool_test.py +++ b/tests/db_pool_test.py @@ -645,7 +645,7 @@ class Test02MysqlRaw(MysqlConnectionPool, RawConnectionPool, TestCase): __test__ = True -def postgres_requirement(_f): +def postgres_requirement(_f, debug=True): try: import psycopg2 try: @@ -653,10 +653,12 @@ def postgres_requirement(_f): psycopg2.connect(**auth) return True except psycopg2.OperationalError: - print("Skipping postgres tests, error when connecting") + if debug: + print("Skipping postgres tests, error when connecting") return False except ImportError: - print("Skipping postgres tests, psycopg2 not importable") + if debug: + print("Skipping postgres tests, psycopg2 not importable") return False |
