summaryrefslogtreecommitdiff
path: root/tests/testutils.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-10-19 14:49:27 +0200
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-10-19 15:18:38 +0200
commit8f11821c173d723824c537c6b36cb5e7b883149d (patch)
treef24080042bdce6db25559e11edbb7eaa88c1be3f /tests/testutils.py
parent58654990d6ead20e6e6977852ca2bfac8f3b1fc4 (diff)
downloadpsycopg2-8f11821c173d723824c537c6b36cb5e7b883149d.tar.gz
Use travis test config variable 0/1 instead of blank strings
Travis web interface doesn't allow anymore to set an empty string as variable value.
Diffstat (limited to 'tests/testutils.py')
-rw-r--r--tests/testutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutils.py b/tests/testutils.py
index 996ceb7..919135f 100644
--- a/tests/testutils.py
+++ b/tests/testutils.py
@@ -425,7 +425,7 @@ def slow(f):
"""
@wraps(f)
def slow_(self):
- if os.environ.get('PSYCOPG2_TEST_FAST'):
+ if os.environ.get('PSYCOPG2_TEST_FAST', '0') != '0':
return self.skipTest("slow test")
return f(self)
return slow_