From: Jason Kirtland Date: Thu, 19 Jul 2007 01:23:01 +0000 (+0000) Subject: Target testcreate schema test better. X-Git-Tag: rel_0_4_6~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e7b01166cb7fe01f3e446e24235e0d03544a853;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Target testcreate schema test better. --- diff --git a/test/engine/reflection.py b/test/engine/reflection.py index d2ee3106cb..760d9bbf5c 100644 --- a/test/engine/reflection.py +++ b/test/engine/reflection.py @@ -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),