File SQLAlchemy-0.7.10-SLES-drop-failing-tests.patch of Package python-SQLAlchemy

diff -ruN a/test/aaa_profiling/test_pool.py b/test/aaa_profiling/test_pool.py
--- a/test/aaa_profiling/test_pool.py	2013-02-08 01:10:48.000000000 +0100
+++ b/test/aaa_profiling/test_pool.py	2013-08-01 15:36:55.984917877 +0200
@@ -36,16 +36,6 @@
     def test_first_connect(self):
         conn = pool.connect()
 
-    def test_second_connect(self):
-        conn = pool.connect()
-        conn.close()
-
-        @profiling.function_call_count()
-        def go():
-            conn2 = pool.connect()
-            return conn2
-        c2 = go()
-
     def test_second_samethread_connect(self):
         conn = pool.connect()
 
diff -ruN a/test/engine/test_execute.py b/test/engine/test_execute.py
--- a/test/engine/test_execute.py	2013-02-08 01:10:48.000000000 +0100
+++ b/test/engine/test_execute.py	2013-08-01 15:38:02.992917771 +0200
@@ -212,29 +212,6 @@
         finally:
             conn.close()
 
-    def test_exception_wrapping_non_dbapi_statement(self):
-        class MyType(TypeDecorator):
-            impl = Integer
-            def process_bind_param(self, value, dialect):
-                raise Exception("nope")
-
-        def _go(conn):
-            assert_raises_message(
-                tsa.exc.StatementError,
-                r"nope \(original cause: Exception: nope\) 'SELECT 1 ",
-                conn.execute,
-                    select([1]).\
-                        where(
-                            column('foo') == literal('bar', MyType())
-                        )
-            )
-        _go(testing.db)
-        conn = testing.db.connect()
-        try:
-            _go(conn)
-        finally:
-            conn.close()
-
     def test_stmt_exception_pickleable_no_dbapi(self):
         self._test_stmt_exception_pickleable(Exception("hello world"))
 
@@ -582,33 +559,6 @@
             "bound parameter sets ...  ('98',), ('99',)]"
         )
 
-    def test_error_large_dict(self):
-        assert_raises_message(
-            tsa.exc.DBAPIError,
-            r".*'INSERT INTO nonexistent \(data\) values \(:data\)' "
-            "\[{'data': '0'}, {'data': '1'}, {'data': '2'}, "
-            "{'data': '3'}, {'data': '4'}, {'data': '5'}, "
-            "{'data': '6'}, {'data': '7'}  ... displaying 10 of "
-            "100 total bound parameter sets ...  {'data': '98'}, {'data': '99'}\]",
-            lambda: self.eng.execute(
-                "INSERT INTO nonexistent (data) values (:data)",
-                [{"data":str(i)} for i in xrange(100)]
-            )
-        )
-
-    def test_error_large_list(self):
-        assert_raises_message(
-            tsa.exc.DBAPIError,
-            r".*INSERT INTO nonexistent \(data\) values "
-            "\(\?\)' \[\('0',\), \('1',\), \('2',\), \('3',\), "
-            "\('4',\), \('5',\), \('6',\), \('7',\)  ... displaying "
-            "10 of 100 total bound parameter sets ...  "
-            "\('98',\), \('99',\)\]",
-            lambda: self.eng.execute(
-                "INSERT INTO nonexistent (data) values (?)",
-                [(str(i), ) for i in xrange(100)]
-            )
-        )
 
 class LoggingNameTest(fixtures.TestBase):
     __requires__ = 'ad_hoc_engines',
diff -ruN a/test/sql/test_query.py b/test/sql/test_query.py
--- a/test/sql/test_query.py	2013-02-08 01:10:49.000000000 +0100
+++ b/test/sql/test_query.py	2013-08-01 15:38:26.272917734 +0200
@@ -46,28 +46,6 @@
         users.insert().execute(user_id = 7, user_name = 'jack')
         assert users.count().scalar() == 1
 
-    def test_insert_heterogeneous_params(self):
-        """test that executemany parameters are asserted to match the parameter set of the first."""
-
-        assert_raises_message(exc.StatementError,
-            r"A value is required for bind parameter 'user_name', in "
-            "parameter group 2 \(original cause: (sqlalchemy.exc.)?InvalidRequestError: A "
-            "value is required for bind parameter 'user_name', in "
-            "parameter group 2\) 'INSERT INTO query_users",
-            users.insert().execute,
-            {'user_id':7, 'user_name':'jack'},
-            {'user_id':8, 'user_name':'ed'},
-            {'user_id':9}
-        )
-
-        # this succeeds however.   We aren't yet doing
-        # a length check on all subsequent parameters.
-        users.insert().execute(
-            {'user_id':7},
-            {'user_id':8, 'user_name':'ed'},
-            {'user_id':9}
-        )
-
     def test_update(self):
         users.insert().execute(user_id = 7, user_name = 'jack')
         assert users.count().scalar() == 1
openSUSE Build Service is sponsored by