]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Target testcreate schema test better.
authorJason Kirtland <jek@discorporate.us>
Thu, 19 Jul 2007 01:23:01 +0000 (01:23 +0000)
committerJason Kirtland <jek@discorporate.us>
Thu, 19 Jul 2007 01:23:01 +0000 (01:23 +0000)
test/engine/reflection.py

index d2ee3106cb1038be965ee3c9cae17f9f1fdfb766..760d9bbf5ce6ac99288b1ab979be8610e834b18e 100644 (file)
@@ -579,9 +579,12 @@ class SchemaTest(PersistTest):
         assert buf.index("CREATE TABLE someschema.table1") > -1
         assert buf.index("CREATE TABLE someschema.table2") > -1
     
-    @testbase.unsupported('sqlite')
+    @testbase.supported('mysql','postgres')
     def testcreate(self):
-        schema = testbase.db.url.database
+        if testbase.db.name == 'mysql':
+            schema = testbase.db.url.database
+        else:
+            schema = 'public'
         metadata = MetaData(testbase.db)
         table1 = Table('table1', metadata, 
             Column('col1', Integer, primary_key=True),