[Zope-Coders] Zope test results (head)
Tres Seaver
tseaver@zope.com
Mon, 10 Dec 2001 23:15:38 -0500
WAAAA! This patch, checked in this morning with the note
"Merge fix from 2.5 branch", causes the breakage::
--- Products/PageTemplates/TALES.py 2001/11/28 15:51:01 1.24
+++ Products/PageTemplates/TALES.py 2001/12/10 15:44:12 1.25
@@ -109,7 +109,7 @@
def next(self):
try:
if ZTUtils.Iterator.next(self):
- self._context.setLocal(self.name, self.seq[self.index])
+ self._context.setLocal(self.name, self.item)
return 1
except TALESError:
raise
(or see
<http://cvs.zope.org/Products/PageTemplates/TALES.py.diff?r1=1.24&r2=1.25&sortby=date>)
Only thing is, there is no branched revision! (1.24 *is* the 2.5 branch)
background@shane.zope.com wrote:
> ======================================================================
> ERROR: check3 (testHTMLTests.HTMLTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/background/zopetest/lib/python/Products/PageTemplates/tests/testHTMLTests.py", line 95, in check3
> out = t(getProducts=self.getProducts)
> File "/home/background/zopetest/lib/python/Products/PageTemplates/PageTemplate.py", line 91, in __call__
> return self.pt_render(extra_context={'options': kwargs})
> File "/home/background/zopetest/lib/python/Products/PageTemplates/PageTemplate.py", line 85, in pt_render
> tal=not source, strictinsert=0)()
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 158, in __call__
> self.interpret(self.program)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 523, in do_useMacro
> self.interpret(macro)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 542, in do_defineSlot
> self.interpret(slot)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 476, in do_loop_tal
> self.interpret(block)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 413, in do_insertText_tal
> text = self.engine.evaluateText(stuff[0])
> File "/home/background/zopetest/lib/python/Products/PageTemplates/TALES.py", line 269, in evaluateText
> text = self.evaluate(expr)
> File "/home/background/zopetest/lib/python/Products/PageTemplates/TALES.py", line 247, in evaluate
> v = expression(self)
> File "/home/background/zopetest/lib/python/Products/PageTemplates/Expressions.py", line 161, in __call__
> return self._eval(econtext, getSecurityManager())
> File "/home/background/zopetest/lib/python/Products/PageTemplates/Expressions.py", line 150, in _eval
> raise Undefined(self._s, sys.exc_info())
> Undefined: description not found in 'product/description', at line 45, column 23
> ======================================================================
> ERROR: DTML test 1: if, in, and var:
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/background/zopetest/lib/python/Products/PageTemplates/tests/testDTMLTests.py", line 81, in check1
> o=self.t.__of__(aa)()
> File "/home/background/zopetest/lib/python/Products/PageTemplates/PageTemplate.py", line 91, in __call__
> return self.pt_render(extra_context={'options': kwargs})
> File "/home/background/zopetest/lib/python/Products/PageTemplates/PageTemplate.py", line 85, in pt_render
> tal=not source, strictinsert=0)()
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 158, in __call__
> self.interpret(self.program)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 491, in do_condition
> self.interpret(block)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 476, in do_loop_tal
> self.interpret(block)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 413, in do_insertText_tal
> text = self.engine.evaluateText(stuff[0])
> File "/home/background/zopetest/lib/python/Products/PageTemplates/TALES.py", line 269, in evaluateText
> text = self.evaluate(expr)
> File "/home/background/zopetest/lib/python/Products/PageTemplates/TALES.py", line 247, in evaluate
> v = expression(self)
> File "/home/background/zopetest/lib/python/Products/PageTemplates/Expressions.py", line 161, in __call__
> return self._eval(econtext, getSecurityManager())
> File "/home/background/zopetest/lib/python/Products/PageTemplates/Expressions.py", line 150, in _eval
> raise Undefined(self._s, sys.exc_info())
> Undefined: num not found in 'arg/num', at line 10, column 31
> ======================================================================
> ERROR: DTML test 3: batches and formatting:
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/background/zopetest/lib/python/Products/PageTemplates/tests/testDTMLTests.py", line 130, in check3
> o=self.t.__of__(aa)(batch=batch.batch(aa.args, 5))
> File "/home/background/zopetest/lib/python/Products/PageTemplates/PageTemplate.py", line 91, in __call__
> return self.pt_render(extra_context={'options': kwargs})
> File "/home/background/zopetest/lib/python/Products/PageTemplates/PageTemplate.py", line 85, in pt_render
> tal=not source, strictinsert=0)()
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 158, in __call__
> self.interpret(self.program)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 491, in do_condition
> self.interpret(block)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 476, in do_loop_tal
> self.interpret(block)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 191, in interpret
> handlers[opcode](self, args)
> File "/home/background/zopetest/lib/python/TAL/TALInterpreter.py", line 402, in do_setLocal_tal
> self.engine.setLocal(name, self.engine.evaluateValue(expr))
> File "/home/background/zopetest/lib/python/Products/PageTemplates/TALES.py", line 247, in evaluate
> v = expression(self)
> File "/home/background/zopetest/lib/python/Products/PageTemplates/Expressions.py", line 161, in __call__
> return self._eval(econtext, getSecurityManager())
> File "/home/background/zopetest/lib/python/Products/PageTemplates/Expressions.py", line 150, in _eval
> raise Undefined(self._s, sys.exc_info())
> Undefined: num not found in 'arg/num', at line 15, column 28
> ======================================================================
> ERROR: Test sample Iterator class
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/background/zopetest/lib/python/Products/PageTemplates/tests/testTALES.py", line 21, in testIterator1
> assert it.next() and not it.next(), "Single-element iterator"
> File "/home/background/zopetest/lib/python/Products/PageTemplates/TALES.py", line 112, in next
> self._context.setLocal(self.name, self.item)
> File "/home/background/zopetest/lib/python/Products/PageTemplates/tests/__init__.py", line 25, in _method_
> assert aargs == args, "Harness method arguments"
> TALESError: exceptions.AssertionError on Harness method arguments in 'repeat/name'
> ======================================================================
> ERROR: Test sample Iterator class
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/background/zopetest/lib/python/Products/PageTemplates/tests/testTALES.py", line 31, in testIterator2
> assert it.next(), "Multi-element iterator"
> File "/home/background/zopetest/lib/python/Products/PageTemplates/TALES.py", line 112, in next
> self._context.setLocal(self.name, self.item)
> File "/home/background/zopetest/lib/python/Products/PageTemplates/tests/__init__.py", line 25, in _method_
> assert aargs == args, "Harness method arguments"
> TALESError: exceptions.AssertionError on Harness method arguments in 'repeat/text'
> ----------------------------------------------------------------------
> Ran 1087 tests in 162.657s
>
> FAILED (errors=5)
>
> ======================================================================
> OVERALL FAILED (total errors=5)
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com