From: Jason Kirtland Date: Fri, 25 May 2007 22:32:34 +0000 (+0000) Subject: - Setup/teardown out test table properly X-Git-Tag: rel_0_3_8~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b8e4947d778206894a9a8b4312f500abb7126eb;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Setup/teardown out test table properly --- diff --git a/test/engine/reflection.py b/test/engine/reflection.py index fa359ba50f..53aa10ba82 100644 --- a/test/engine/reflection.py +++ b/test/engine/reflection.py @@ -206,14 +206,15 @@ class ReflectionTest(PersistTest): Column('num1', mysql.MSInteger(unsigned=True)), Column('text1', mysql.MSLongText), Column('text2', mysql.MSLongText()), - Column('num2', mysql.MSBigInteger), - Column('num3', mysql.MSBigInteger()), - Column('num4', mysql.MSDouble), - Column('num5', mysql.MSDouble()), - Column('enum1', mysql.MSEnum('"black"', '"white"')), + Column('num2', mysql.MSBigInteger), + Column('num3', mysql.MSBigInteger()), + Column('num4', mysql.MSDouble), + Column('num5', mysql.MSDouble()), + Column('enum1', mysql.MSEnum('"black"', '"white"')), ) try: - table.create(checkfirst=True) + table.drop(checkfirst=True) + table.create() meta2 = BoundMetaData(testbase.db) t2 = Table('mysql_types', meta2, autoload=True) assert isinstance(t2.c.num1.type, mysql.MSInteger)