diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-07-25 12:02:05 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-07-25 12:02:05 -0400 |
commit | 8560522ff0244c93dab62276f9ba445df90f0d39 (patch) | |
tree | 1e9d6884790225ae47f4a87b1a489b108652deec | |
parent | 0df977ccad63831375d8a7bc6383385c331d9742 (diff) | |
download | sqlalchemy-8560522ff0244c93dab62276f9ba445df90f0d39.tar.gz |
- use a variant with expected collation here for mysql
-rw-r--r-- | test/orm/test_unitofwork.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/orm/test_unitofwork.py b/test/orm/test_unitofwork.py index 3f785a58b..6eb763213 100644 --- a/test/orm/test_unitofwork.py +++ b/test/orm/test_unitofwork.py @@ -61,11 +61,8 @@ class UnicodeTest(fixtures.MappedTest): @classmethod def define_tables(cls, metadata): - if testing.against('mysql+oursql'): - from sqlalchemy.dialects.mysql import VARCHAR - uni_type = VARCHAR(50, collation='utf8_unicode_ci') - else: - uni_type = sa.Unicode(50) + uni_type = sa.Unicode(50).with_variant( + sa.Unicode(50, collation="utf8_unicode_ci"), "mysql") Table('uni_t1', metadata, Column('id', Integer, primary_key=True, |