summaryrefslogtreecommitdiff
path: root/tests/test_cursor.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-02-15 15:25:14 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-02-15 15:25:14 +0000
commitbe22dfb765dddbf27560729c74bb0ee03e39f56a (patch)
tree2c1fc5abae2808f7af2377dda3a539968276d2c0 /tests/test_cursor.py
parent522af403c6bba0e9d071adbd13c37cfde06e9639 (diff)
downloadpsycopg2-be22dfb765dddbf27560729c74bb0ee03e39f56a.tar.gz
Skip test if clock_timestamp function is not available
Diffstat (limited to 'tests/test_cursor.py')
-rwxr-xr-xtests/test_cursor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_cursor.py b/tests/test_cursor.py
index 0983fbb..4283596 100755
--- a/tests/test_cursor.py
+++ b/tests/test_cursor.py
@@ -23,11 +23,11 @@
# License for more details.
import time
-import unittest
import psycopg2
import psycopg2.extensions
from psycopg2.extensions import b
from testconfig import dsn
+from testutils import unittest, skip_if_no_pg_sleep
class CursorTests(unittest.TestCase):
@@ -130,6 +130,7 @@ class CursorTests(unittest.TestCase):
del curs
self.assert_(w() is None)
+ @skip_if_no_pg_sleep('conn')
def test_iter_named_cursor_efficient(self):
curs = self.conn.cursor('tmp')
# if these records are fetched in the same roundtrip their