From: Jason Kirtland Date: Thu, 26 Jul 2007 21:12:20 +0000 (+0000) Subject: Um... "ImportError: No module named profile; please install the python-profiler... X-Git-Tag: rel_0_4_6~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0d26f03f676dab2ba311c57030c7de1102595e0;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Um... "ImportError: No module named profile; please install the python-profiler package" --- diff --git a/test/testlib/profiling.py b/test/testlib/profiling.py index 51b8bb5d8d..697df4ea2e 100644 --- a/test/testlib/profiling.py +++ b/test/testlib/profiling.py @@ -1,6 +1,5 @@ """Profiling support for unit and performance tests.""" -import time, hotshot, hotshot.stats from testlib.config import parser, post_configure import testlib.config @@ -24,6 +23,8 @@ def profiled(target, **target_opts): configuration and command-line options. """ + import time, hotshot, hotshot.stats + # manual or automatic namespacing by module would remove conflict issues if target in all_targets: print "Warning: redefining profile target '%s'" % target