mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Skip test if clock_timestamp function is not available
This commit is contained in:
parent
522af403c6
commit
be22dfb765
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user