summaryrefslogtreecommitdiff
path: root/tests/test_green.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_green.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_green.py')
-rwxr-xr-xtests/test_green.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_green.py b/tests/test_green.py
index 0424a2c..6d1571d 100755
--- a/tests/test_green.py
+++ b/tests/test_green.py
@@ -27,7 +27,7 @@ import psycopg2
import psycopg2.extensions
import psycopg2.extras
-from testutils import ConnectingTestCase
+from testutils import ConnectingTestCase, slow
class ConnectionStub(object):
@@ -61,6 +61,7 @@ class GreenTestCase(ConnectingTestCase):
lambda conn: psycopg2.extras.wait_select(stub))
return stub
+ @slow
def test_flush_on_write(self):
# a very large query requires a flush loop to be sent to the backend
conn = self.conn