Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f0ab772973efcc0ab07bba4ca98afc0fc58bb3e0 1 parent 4d4f137
@abbeyj abbeyj authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  cheetah/Tests/Performance.py
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.