]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Um... "ImportError: No module named profile; please install the python-profiler...
authorJason Kirtland <jek@discorporate.us>
Thu, 26 Jul 2007 21:12:20 +0000 (21:12 +0000)
committerJason Kirtland <jek@discorporate.us>
Thu, 26 Jul 2007 21:12:20 +0000 (21:12 +0000)
test/testlib/profiling.py

index 51b8bb5d8d4b0c6a02de9ba8aa36f338186050cb..697df4ea2e99857b2b320fac35606ae1dbd1789e 100644 (file)
@@ -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