From: Gaƫtan de Menten Date: Sat, 13 Feb 2010 20:53:17 +0000 (+0000) Subject: misc cleanups in tests (courtesy of Michael Bayer's revisiting of my X-Git-Tag: rel_0_6beta2~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4573f73d0c7f7ce5b184e6c227d0e4f406643a5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git misc cleanups in tests (courtesy of Michael Bayer's revisiting of my patch) --- diff --git a/test/perf/masseagerload.py b/test/perf/masseagerload.py index 88a3ade20b..83140643c3 100644 --- a/test/perf/masseagerload.py +++ b/test/perf/masseagerload.py @@ -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))) diff --git a/test/perf/threaded_compile.py b/test/perf/threaded_compile.py index 6809f2560d..e0252403ad 100644 --- a/test/perf/threaded_compile.py +++ b/test/perf/threaded_compile.py @@ -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