[Checkins] SVN: z3c.pt/trunk/benchmark/benchmark/tests.py The request-object must have a 'response' attribute.
Malthe Borch
mborch at gmail.com
Sat May 9 08:26:06 EDT 2009
Log message for revision 99812:
The request-object must have a 'response' attribute.
Changed:
U z3c.pt/trunk/benchmark/benchmark/tests.py
-=-
Modified: z3c.pt/trunk/benchmark/benchmark/tests.py
===================================================================
--- z3c.pt/trunk/benchmark/benchmark/tests.py 2009-05-09 07:44:48 UTC (rev 99811)
+++ z3c.pt/trunk/benchmark/benchmark/tests.py 2009-05-09 12:26:06 UTC (rev 99812)
@@ -16,6 +16,9 @@
from lxml import etree
+class test_request:
+ response = None
+
def benchmark(title):
def decorator(f):
def wrapper(*args):
@@ -153,7 +156,7 @@
def testBigTablePath(self):
table = self.table
- t_z3c = timing(self.bigtable_path_z3c, table=table, request=object())
+ t_z3c = timing(self.bigtable_path_z3c, table=table, request=test_request)
t_zope = timing(self.bigtable_path_zope, table=table)
print "z3c.pt: %.2f" % t_z3c
@@ -239,8 +242,8 @@
zopefile = zope.pagetemplate.pagetemplatefile.PageTemplateFile(
self._testfile('bigtable_path_zope.pt'))
- t_z3c = timing(z3cfile.render, table=table, request=object())
- t_zope = timing(zopefile, table=table, request=object())
+ t_z3c = timing(z3cfile.render, table=table, request=test_request)
+ t_zope = timing(zopefile, table=table, request=test_request)
print "z3c.pt: %.2f" % t_z3c
print "zope.pagetemplate: %.2f" % t_zope
More information about the Checkins
mailing list