]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
misc cleanups in tests (courtesy of Michael Bayer's revisiting of my
authorGaëtan de Menten <gdementen@gmail.com>
Sat, 13 Feb 2010 20:53:17 +0000 (20:53 +0000)
committerGaëtan de Menten <gdementen@gmail.com>
Sat, 13 Feb 2010 20:53:17 +0000 (20:53 +0000)
patch)

test/perf/masseagerload.py
test/perf/threaded_compile.py

index 88a3ade20b19fe3ffabfb1262c72eda6c10ef587..83140643c3852b5d725f12ab1f3114cdb8215aea 100644 (file)
@@ -1,11 +1,12 @@
 from sqlalchemy import *
 from sqlalchemy.orm import *
-from sqlalchemy.test import *
+from sqlalchemy.test import profiling
 
 NUM = 500
 DIVISOR = 50
 
-meta = MetaData(testing.db)
+engine = create_engine('sqlite://')
+meta = MetaData(engine)
 items = Table('items', meta,
               Column('item_id', Integer, primary_key=True),
               Column('value', String(100)))
index 6809f2560d05080e47aa2e9f0d7063ef21117cac..e0252403ad00094215f1e96359b31de79f86726c 100644 (file)
@@ -2,7 +2,6 @@
 when additional mappers are created while the existing
 collection is being compiled."""
 
-import testenv; testenv.simple_setup()
 from sqlalchemy import *
 from sqlalchemy.orm import *
 import thread, time