diff options
author | Gaëtan de Menten <gdementen@gmail.com> | 2010-02-13 20:53:17 +0000 |
---|---|---|
committer | Gaëtan de Menten <gdementen@gmail.com> | 2010-02-13 20:53:17 +0000 |
commit | f4573f73d0c7f7ce5b184e6c227d0e4f406643a5 (patch) | |
tree | 0672cb35e6001f492698693bbcd7e5585645b8e0 | |
parent | ffe0ab5ba62be5df4c18829131cd58a52966d3b7 (diff) | |
download | sqlalchemy-f4573f73d0c7f7ce5b184e6c227d0e4f406643a5.tar.gz |
misc cleanups in tests (courtesy of Michael Bayer's revisiting of my
patch)
-rw-r--r-- | test/perf/masseagerload.py | 5 | ||||
-rw-r--r-- | test/perf/threaded_compile.py | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/perf/masseagerload.py b/test/perf/masseagerload.py index 88a3ade20..83140643c 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 6809f2560..e0252403a 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 |