]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
opened up the test for "reflection with convert_unicode=True". this is since convert...
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 27 Nov 2007 16:23:02 +0000 (16:23 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 27 Nov 2007 16:23:02 +0000 (16:23 +0000)
if maxdb or sybase *should* be able to handle this too though I can't test on this end.

test/engine/reflection.py

index cbc221e93554a9b17c79819c9174a6f070c5a25c..756f42224eb3811280fdf4326061492a78431d1c 100644 (file)
@@ -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()