]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- find the remaining not cleaning up correctly test
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Jul 2014 17:11:04 +0000 (13:11 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 29 Jul 2014 17:33:21 +0000 (13:33 -0400)
test/sql/test_query.py

index 039e8d7e53568b4cbfc59501062a0012b6f59609..9d339336fb58c8a8ffe4653eae2ce8998d2648a3 100644 (file)
@@ -230,6 +230,7 @@ class QueryTest(fixtures.TestBase):
                 finally:
                     table.drop(bind=engine)
 
+    # TODO: why not in the sqlite suite?
     @testing.only_on('sqlite+pysqlite')
     @testing.provide_metadata
     def test_lastrowid_zero(self):
@@ -242,7 +243,7 @@ class QueryTest(fixtures.TestBase):
                 return 0
         eng.dialect.execution_ctx_cls = ExcCtx
         t = Table(
-            't', MetaData(), Column('x', Integer, primary_key=True),
+            't', self.metadata, Column('x', Integer, primary_key=True),
             Column('y', Integer))
         t.create(eng)
         r = eng.execute(t.insert().values(y=5))