]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- native unicode expectations are too difficult to maintain
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Jan 2016 19:30:30 +0000 (14:30 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 Jan 2016 19:36:52 +0000 (14:36 -0500)
w/ the number of drivers /DBURIs /  python versions

(cherry picked from commit d18d6d9baf4c98c47af70c0a7c796423396a51c1)
(cherry picked from commit 341a52015bad4051ddd01396582488106f826118)

test/sql/test_types.py

index 97bd7ae617b12f68f3b30f9fdd9a4eea42ef3d05..7507ddb59f565dc65622bf2f3840c7186f3fcafe 100644 (file)
@@ -893,65 +893,6 @@ class UnicodeTest(fixtures.TestBase):
     """
     __backend__ = True
 
-    def test_native_unicode(self):
-        """assert expected values for 'native unicode' mode"""
-
-        if testing.against('mssql+pyodbc'):
-            eq_(
-                testing.db.dialect.returns_unicode_strings,
-                'conditional'
-            )
-
-        elif testing.against('mssql+mxodbc'):
-            eq_(
-                testing.db.dialect.returns_unicode_strings,
-                'conditional'
-            )
-
-        elif testing.against('mssql+pymssql'):
-            eq_(
-                testing.db.dialect.returns_unicode_strings,
-                ('charset' in testing.db.url.query)
-            )
-
-        elif testing.against('mysql+cymysql', 'mysql+pymssql'):
-            eq_(
-                testing.db.dialect.returns_unicode_strings,
-                True if util.py3k else False
-            )
-        elif testing.against('oracle+cx_oracle'):
-            eq_(
-                testing.db.dialect.returns_unicode_strings,
-                True if util.py3k else "conditional"
-            )
-        elif testing.against("mysql+mysqldb"):
-            eq_(
-                testing.db.dialect.returns_unicode_strings,
-                True if util.py3k or util.asbool(
-                    testing.db.url.query.get("use_unicode")
-                )
-                else False
-            )
-        else:
-            expected = (testing.db.name, testing.db.driver) in \
-                (
-                    ('postgresql', 'psycopg2'),
-                    ('postgresql', 'pypostgresql'),
-                    ('postgresql', 'pg8000'),
-                    ('postgresql', 'zxjdbc'),
-                    ('mysql', 'pymysql'),
-                    ('mysql', 'oursql'),
-                    ('mysql', 'zxjdbc'),
-                    ('mysql', 'mysqlconnector'),
-                    ('sqlite', 'pysqlite'),
-                    ('oracle', 'zxjdbc'),
-            )
-
-            eq_(
-                testing.db.dialect.returns_unicode_strings,
-                expected
-            )
-
     data = util.u("Alors vous imaginez ma surprise, au lever du jour, quand "
                   "une drôle de petite voix m’a réveillé. "
                   "Elle disait: « S’il vous plaît… dessine-moi un mouton! »")