summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-12-12 13:43:02 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-12-12 13:43:02 -0500
commitf26e03a954b91eecc9dc29120e70cb39b42982c5 (patch)
treecb0325eeba53c9bc04e037247d6dbaa8f6f0fe1e
parent0d71ea8126137d2b3d4141aa0fb30c2e64376d44 (diff)
downloadsqlalchemy-f26e03a954b91eecc9dc29120e70cb39b42982c5.tar.gz
dont need these imports
-rw-r--r--test/lib/profiling.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/profiling.py b/test/lib/profiling.py
index 6216e75b1..2b358d500 100644
--- a/test/lib/profiling.py
+++ b/test/lib/profiling.py
@@ -203,7 +203,7 @@ def _profile(filename, fn, *args, **kw):
return _profile_hotshot(filename, fn, *args, **kw)
def _profile_cProfile(filename, fn, *args, **kw):
- import cProfile, gc, pstats, time
+ import cProfile, pstats, time
load_stats = lambda: pstats.Stats(filename)
gc_collect()
@@ -216,7 +216,7 @@ def _profile_cProfile(filename, fn, *args, **kw):
return ended - began, load_stats, locals()['result']
def _profile_hotshot(filename, fn, *args, **kw):
- import gc, hotshot, hotshot.stats, time
+ import hotshot, hotshot.stats, time
load_stats = lambda: hotshot.stats.load(filename)
gc_collect()