diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-27 16:23:02 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-27 16:23:02 +0000 |
commit | 6ed4645f02f6cff6bfb46c2eb93004d378a9f423 (patch) | |
tree | a037082ac0821ab99125cb9d4615bd571b19e341 | |
parent | ccdb7257668583d59cc95aa829780c6a4ff38b57 (diff) | |
download | sqlalchemy-6ed4645f02f6cff6bfb46c2eb93004d378a9f423.tar.gz |
opened up the test for "reflection with convert_unicode=True". this is since convert_unicode by default has assert_unicode, want to ensure that other dialects (at least oracle) support this (i.e. not unicode schema names themselves, just that they dont sent thru bytestrings to a String).
if maxdb or sybase *should* be able to handle this too though I can't test on this end.
-rw-r--r-- | test/engine/reflection.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/engine/reflection.py b/test/engine/reflection.py index cbc221e93..756f42224 100644 --- a/test/engine/reflection.py +++ b/test/engine/reflection.py @@ -689,7 +689,7 @@ class CreateDropTest(PersistTest): metadata.drop_all(bind=testbase.db) class UnicodeTest(PersistTest): - @testing.unsupported('sybase', 'maxdb', 'oracle') + def test_basic(self): try: # the 'convert_unicode' should not get in the way of the reflection @@ -698,7 +698,11 @@ class UnicodeTest(PersistTest): bind = engines.utf8_engine(options={'convert_unicode':True}) metadata = MetaData(bind) - names = set([u'plain', u'Unit\u00e9ble', u'\u6e2c\u8a66']) + if testing.against('sybase', 'maxdb', 'oracle'): + names = set(['plain']) + else: + names = set([u'plain', u'Unit\u00e9ble', u'\u6e2c\u8a66']) + for name in names: Table(name, metadata, Column('id', Integer, Sequence(name + "_id_seq"), primary_key=True)) metadata.create_all() |