summaryrefslogtreecommitdiff
path: root/tests/test_errcodes.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-02 01:53:50 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-02 01:53:50 +0000
commitf24de0357ff4472aa8bb283980ea27b3ddd722e4 (patch)
tree70021306cd0905879dcb027034aaf1bf3a4824c2 /tests/test_errcodes.py
parent9ca51e0ed921270b2c641959ffeeb2ca9f58809b (diff)
downloadpsycopg2-manylinux.tar.gz
Allow skipping the slow testmanylinux
It's not so much about tests being slow: some just get stuck and timeout travis. Skipped all tests taking about more than 0.2s to run on my laptop. Fast testing takes about 8s instead of 24.
Diffstat (limited to 'tests/test_errcodes.py')
-rwxr-xr-xtests/test_errcodes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_errcodes.py b/tests/test_errcodes.py
index 6865194..accee56 100755
--- a/tests/test_errcodes.py
+++ b/tests/test_errcodes.py
@@ -22,7 +22,7 @@
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
-from testutils import unittest, ConnectingTestCase
+from testutils import unittest, ConnectingTestCase, slow
try:
reload
@@ -34,6 +34,7 @@ from psycopg2 import errorcodes
class ErrocodeTests(ConnectingTestCase):
+ @slow
def test_lookup_threadsafe(self):
# Increase if it does not fail with KeyError