From 8560522ff0244c93dab62276f9ba445df90f0d39 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 25 Jul 2014 12:02:05 -0400 Subject: [PATCH] - use a variant with expected collation here for mysql --- test/orm/test_unitofwork.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/orm/test_unitofwork.py b/test/orm/test_unitofwork.py index 3f785a58bd..6eb7632130 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, -- 2.47.3