Commits

Mike Bayer committed 3f4f059

- remove obsolete test regarding PG server side cursors + ORM query, was failing + hanging jenkins

Comments (0)

Files changed (1)

test/dialect/test_postgresql.py

         result = ss_engine.execute('SELECT 1 FOR UPDATE')
         assert result.cursor.name
 
-    def test_orm_queries_with_ss(self):
-        metadata = MetaData(testing.db)
-
-
-        class Foo(object):
-
-            pass
-
-
-        footable = Table('foobar', metadata, Column('id', Integer,
-                         primary_key=True))
-        mapper(Foo, footable)
-        metadata.create_all()
-        try:
-            sess = create_session()
-            engine = \
-                engines.testing_engine(options={'server_side_cursors'
-                    : False})
-            result = engine.execute(sess.query(Foo).statement)
-            assert not result.cursor.name, result.cursor.name
-            result.close()
-            q = sess.query(Foo).execution_options(stream_results=True)
-            result = engine.execute(q.statement)
-            assert result.cursor.name
-            result.close()
-            result = \
-                sess.query(Foo).execution_options(stream_results=True).\
-                    statement.execute()
-            assert result.cursor.name
-            result.close()
-        finally:
-            metadata.drop_all()
-
     def test_text_with_ss(self):
         engine = engines.testing_engine(options={'server_side_cursors'
                 : False})
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.