diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-02 01:53:50 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-02-02 01:53:50 +0000 |
commit | f24de0357ff4472aa8bb283980ea27b3ddd722e4 (patch) | |
tree | 70021306cd0905879dcb027034aaf1bf3a4824c2 /tests/test_cursor.py | |
parent | 9ca51e0ed921270b2c641959ffeeb2ca9f58809b (diff) | |
download | psycopg2-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_cursor.py')
-rwxr-xr-x | tests/test_cursor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_cursor.py b/tests/test_cursor.py index fc924c4..a8fedcc 100755 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -26,8 +26,8 @@ import time import pickle import psycopg2 import psycopg2.extensions -from testutils import unittest, ConnectingTestCase, skip_before_postgres -from testutils import skip_if_no_namedtuple, skip_if_no_getrefcount +from testutils import (unittest, ConnectingTestCase, skip_before_postgres, + skip_if_no_namedtuple, skip_if_no_getrefcount, slow) class CursorTests(ConnectingTestCase): @@ -331,6 +331,7 @@ class CursorTests(ConnectingTestCase): curs.scroll(2) self.assertRaises(psycopg2.OperationalError, curs.scroll, -1) + @slow @skip_before_postgres(8, 2) def test_iter_named_cursor_efficient(self): curs = self.conn.cursor('tmp') |