Skip test if clock_timestamp function is not available

This commit is contained in:
Daniele Varrazzo 2011-02-15 15:25:14 +00:00
parent 522af403c6
commit be22dfb765

View File

@ -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