diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-23 14:30:30 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-23 14:30:30 -0500 |
| commit | d18d6d9baf4c98c47af70c0a7c796423396a51c1 (patch) | |
| tree | 64aad71d6d6508e9eecd775aa9c8afeabe30c707 /test/sql | |
| parent | 269313218ddd06a21387085295c553becbd00e46 (diff) | |
| download | sqlalchemy-d18d6d9baf4c98c47af70c0a7c796423396a51c1.tar.gz | |
- native unicode expectations are too difficult to maintain
w/ the number of drivers /DBURIs / python versions
Diffstat (limited to 'test/sql')
| -rw-r--r-- | test/sql/test_types.py | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/test/sql/test_types.py b/test/sql/test_types.py index bb227bc5d..b08556926 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -1017,66 +1017,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', 'psycopg2cffi'), - ('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é. " |
