diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-12 13:43:02 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-12-12 13:43:02 -0500 |
| commit | f26e03a954b91eecc9dc29120e70cb39b42982c5 (patch) | |
| tree | cb0325eeba53c9bc04e037247d6dbaa8f6f0fe1e | |
| parent | 0d71ea8126137d2b3d4141aa0fb30c2e64376d44 (diff) | |
| download | sqlalchemy-f26e03a954b91eecc9dc29120e70cb39b42982c5.tar.gz | |
dont need these imports
| -rw-r--r-- | test/lib/profiling.py | 4 |
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() |
