Permalink
Browse files

Don't use function decorator syntax for compatibility with Python 2.3

  • Loading branch information...
1 parent 4d4f137 commit f0ab772973efcc0ab07bba4ca98afc0fc58bb3e0 @abbeyj abbeyj committed Sep 14, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 cheetah/Tests/Performance.py
@@ -70,7 +70,7 @@ def wrapper(*args, **kw):
class DynamicTemplatePerformanceTest(unittest.TestCase):
loops = 10
- @perftest(1200)
+ #@perftest(1200)
def test_BasicDynamic(self):
template = '''
#def foo(arg1, arg2)
@@ -80,6 +80,7 @@ def test_BasicDynamic(self):
for i in xrange(self.loops):
klass = Cheetah.Template.Template.compile(template)
assert klass
+ test_BasicDynamic = perftest(1200)(test_BasicDynamic)
class PerformanceTest(unittest.TestCase):
iterations = 1000000

0 comments on commit f0ab772

Please sign in to comment.