From be22dfb765dddbf27560729c74bb0ee03e39f56a Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 15 Feb 2011 15:25:14 +0000 Subject: [PATCH] Skip test if clock_timestamp function is not available --- tests/test_cursor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_cursor.py b/tests/test_cursor.py index 0983fbb3..42835967 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