]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
apply test skips for pypy issue #1573 in 0.8 [ticket:2805]
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Aug 2013 03:32:23 +0000 (23:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Aug 2013 03:32:23 +0000 (23:32 -0400)
test/orm/test_unitofwork.py
test/sql/test_unicode.py

index 6be1672e16b6cc91c7d96bd1e56daaa207476481..75378005751bc32379e9602bac62af5bd35a30a6 100644 (file)
@@ -16,6 +16,7 @@ from sqlalchemy.orm import mapper, relationship, create_session, \
 from sqlalchemy.testing import fixtures
 from test.orm import _fixtures
 from sqlalchemy.testing.assertsql import AllOf, CompiledSQL
+from sqlalchemy import testing, util
 
 class UnitOfWorkTest(object):
     pass
@@ -158,6 +159,9 @@ class UnicodeSchemaTest(fixtures.MappedTest):
 
     @testing.fails_on('mssql+pyodbc',
                       'pyodbc returns a non unicode encoding of the results description.')
+    @testing.skip_if(lambda: util.pypy,
+            "pypy/sqlite3 reports unicode cursor.description "
+            "incorrectly pre 2.2, workaround applied in 0.9")
     def test_mapping(self):
         t2, t1 = self.tables.t2, self.tables.t1
 
@@ -197,6 +201,9 @@ class UnicodeSchemaTest(fixtures.MappedTest):
 
     @testing.fails_on('mssql+pyodbc',
                       'pyodbc returns a non unicode encoding of the results description.')
+    @testing.skip_if(lambda: util.pypy,
+            "pypy/sqlite3 reports unicode cursor.description "
+            "incorrectly pre 2.2, workaround applied in 0.9")
     def test_inheritance_mapping(self):
         t2, t1 = self.tables.t2, self.tables.t1
 
@@ -2518,4 +2525,4 @@ class PartialNullPKTest(fixtures.MappedTest):
         s.commit()
 
         t.col1 = "1"
-        s.commit()
\ No newline at end of file
+        s.commit()
index 37e44522e065a03720b6e063648ac3c669c262fb..a7b5cdf3c8a87413bcf3c61cd136fd97bb66ec59 100644 (file)
@@ -3,7 +3,7 @@
 
 from sqlalchemy import *
 from sqlalchemy.testing import fixtures, engines
-from sqlalchemy import testing
+from sqlalchemy import testing, util
 from sqlalchemy.testing.engines import utf8_engine
 from sqlalchemy.sql import column
 from sqlalchemy.testing.schema import Table, Column
@@ -71,6 +71,9 @@ class UnicodeSchemaTest(fixtures.TestBase):
         metadata.drop_all()
         del unicode_bind
 
+    @testing.skip_if(lambda: util.pypy,
+            "pypy/sqlite3 reports unicode cursor.description "
+            "incorrectly pre 2.2, workaround applied in 0.9")
     def test_insert(self):
         t1.insert().execute({u'méil':1, u'\u6e2c\u8a66':5})
         t2.insert().execute({'a':1, 'b':1})
@@ -83,6 +86,9 @@ class UnicodeSchemaTest(fixtures.TestBase):
         assert t2.select().execute().fetchall() == [(1, 1)]
         assert t3.select().execute().fetchall() == [(1, 5, 1, 1)]
 
+    @testing.skip_if(lambda: util.pypy,
+            "pypy/sqlite3 reports unicode cursor.description "
+            "incorrectly pre 2.2, workaround applied in 0.9")
     def test_reflect(self):
         t1.insert().execute({u'méil':2, u'\u6e2c\u8a66':7})
         t2.insert().execute({'a':2, 'b':2})