diff options
author | James Abbatiello <abbeyj@gmail.com> | 2009-09-14 18:35:54 -0400 |
---|---|---|
committer | James Abbatiello <abbeyj@gmail.com> | 2009-09-14 18:35:54 -0400 |
commit | f0ab772973efcc0ab07bba4ca98afc0fc58bb3e0 (patch) | |
tree | 911f791ef51972db3e77911f47eac8851e696a8a | |
parent | 4d4f137412e64c091376b8268184961a4725fb94 (diff) | |
download | python-cheetah-f0ab772973efcc0ab07bba4ca98afc0fc58bb3e0.tar.gz |
Don't use function decorator syntax for compatibility with Python 2.3v2.2.2
-rw-r--r-- | cheetah/Tests/Performance.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cheetah/Tests/Performance.py b/cheetah/Tests/Performance.py index db721f9..0f7d613 100644 --- a/cheetah/Tests/Performance.py +++ b/cheetah/Tests/Performance.py @@ -70,7 +70,7 @@ def perftest(max_num_pystones, current_pystone=None): class DynamicTemplatePerformanceTest(unittest.TestCase): loops = 10 - @perftest(1200) + #@perftest(1200) def test_BasicDynamic(self): template = ''' #def foo(arg1, arg2) @@ -80,6 +80,7 @@ class DynamicTemplatePerformanceTest(unittest.TestCase): 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 |