summaryrefslogtreecommitdiff
path: root/test/perf
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-06-29 00:28:55 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-06-29 00:28:55 +0000
commitb3927fbb88c7988ec0397241ff40ecd72d1727bf (patch)
tree278f0a745e47570cb141f4fd4eb3319190be8296 /test/perf
parent2fb9221b797e5a29e34096c09d97615d859e95d1 (diff)
downloadsqlalchemy-b3927fbb88c7988ec0397241ff40ecd72d1727bf.tar.gz
inserting './lib/' into sys.path since PYTHONPATH no longer straightforward with latest setuptools
Diffstat (limited to 'test/perf')
-rw-r--r--test/perf/masscreate.py2
-rw-r--r--test/perf/masscreate2.py3
-rw-r--r--test/perf/massload2.py5
3 files changed, 9 insertions, 1 deletions
diff --git a/test/perf/masscreate.py b/test/perf/masscreate.py
index 5f99bb6c1..e603e2c00 100644
--- a/test/perf/masscreate.py
+++ b/test/perf/masscreate.py
@@ -1,4 +1,6 @@
# times how long it takes to create 26000 objects
+import sys
+sys.path.insert(0, './lib/')
from sqlalchemy.attributes import *
import time
diff --git a/test/perf/masscreate2.py b/test/perf/masscreate2.py
index f261f832c..3a68f3612 100644
--- a/test/perf/masscreate2.py
+++ b/test/perf/masscreate2.py
@@ -1,3 +1,6 @@
+import sys
+sys.path.insert(0, './lib/')
+
import gc
import random, string
diff --git a/test/perf/massload2.py b/test/perf/massload2.py
index 955e2b283..1506ca503 100644
--- a/test/perf/massload2.py
+++ b/test/perf/massload2.py
@@ -1,3 +1,6 @@
+import sys
+sys.path.insert(0, './lib/')
+
try:
# import sqlalchemy.mods.threadlocal
pass
@@ -70,4 +73,4 @@ print len([s for s in sess])
print "flushing"
sess.flush()
total = time.time() - now
-print "done,total time", total \ No newline at end of file
+print "done,total time", total