From 393dfcabc22d7cb20e3dbd408df5087ce500fa8c Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Mon, 8 Jun 2009 06:16:29 +0200 Subject: Conditional hotshot import. --- tests/run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run_tests.py b/tests/run_tests.py index 0679307..7240f2f 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -3,7 +3,6 @@ """Test runner for sqlparse.""" -import hotshot import optparse import os import sys @@ -38,6 +37,7 @@ def main(args): if __name__ == '__main__': opts, args = parser.parse_args() if opts.profile: + import hotshot prof = hotshot.Profile("sqlparse.prof") prof.runcall(main, args) prof.close() -- cgit v1.2.1