[PEAK] peak test errors
R. David Murray
rdmurray at bitdance.com
Tue Nov 30 15:00:11 EST 2004
Sorry for the long post, but this seems to be the easiest way to answer
your question. Note that I deleted my peak directory in site-packages
and redid the install before running the tests, just to make sure.
Maybe it's a python2.4 issue? I'm running a3 at the moment.
---------------------------------------------------------------------------
Script started on Tue Nov 30 14:54:30 2004
rdmurray at stage:~/proj/fcgbilling>peak test
/usr/local/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module
DeprecationWarning)
........................................................E........E......E...............................................................................................................................................................................................................................F...........................................................................................................................................................................................................................................................................................................................................................................E..........................................................................................................................................................
======================================================================
ERROR: testSequences (protocols.tests.test_parsing.EventTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/protocols/tests/test_parsing.py", line 173, in testSequences
self.assertEqual(pe("(a,)"), "Tuple(a)")
File "/usr/local/lib/python2.4/site-packages/protocols/tests/test_parsing.py", line 125, in <lambda>
pe = lambda s: parse_expr(s,sb)
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 383, in parse_expr
return build(builder, parser.expr(expr).totuple(1)[1])
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 378, in build
return production[nodelist[0]](builder,nodelist)
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 217, in atom
return build(builder,nodelist[2])
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 378, in build
return production[nodelist[0]](builder,nodelist)
KeyError: 313
======================================================================
ERROR: testSequences (protocols.tests.test_parsing.ExprBuilderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/protocols/tests/test_parsing.py", line 465, in testSequences
self.assertEqual(pe("(a,)"), Tuple(tuple,a))
File "/usr/local/lib/python2.4/site-packages/protocols/tests/test_parsing.py", line 339, in parse
return parse_expr(expr, self.builder)
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 383, in parse_expr
return build(builder, parser.expr(expr).totuple(1)[1])
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 378, in build
return production[nodelist[0]](builder,nodelist)
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 217, in atom
return build(builder,nodelist[2])
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 378, in build
return production[nodelist[0]](builder,nodelist)
KeyError: 313
======================================================================
ERROR: testParseMembership (protocols.tests.test_parsing.PredicateTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/protocols/tests/test_parsing.py", line 748, in testParseMembership
self.assertEqual(pe('x in (1,2,3)'), Signature(x=in_test([1,2,3])))
File "/usr/local/lib/python2.4/site-packages/protocols/tests/test_parsing.py", line 742, in <lambda>
pe = lambda e: parse(e,locals(),globals())
File "/usr/local/lib/python2.4/site-packages/dispatch/functions.py", line 243, in parse
return parse_expr(expr_string,builder)
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 383, in parse_expr
return build(builder, parser.expr(expr).totuple(1)[1])
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 378, in build
return production[nodelist[0]](builder,nodelist)
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 111, in comparison
return builder.Compare(nodelist[1], results)
File "/usr/local/lib/python2.4/site-packages/dispatch/predicates.py", line 667, in Compare
right = build(self.expr_builder,other)
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 378, in build
return production[nodelist[0]](builder,nodelist)
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 217, in atom
return build(builder,nodelist[2])
File "/usr/local/lib/python2.4/site-packages/dispatch/ast_builder.py", line 378, in build
return production[nodelist[0]](builder,nodelist)
KeyError: 313
======================================================================
ERROR: testContextAttrs (peak.web.tests.test_environ.TestTraversals)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/peak/web/tests/test_environ.py", line 142, in testContextAttrs
self.assertRaises(TypeError, lambda: self.getPath('/').traversedURL)
File "/usr/local/lib/python2.4/unittest.py", line 319, in failUnlessRaises
callableObj(*args, **kwargs)
File "/usr/local/lib/python2.4/site-packages/peak/web/tests/test_environ.py", line 142, in <lambda>
self.assertRaises(TypeError, lambda: self.getPath('/').traversedURL)
File "C:\cygwin\home\pje\PEAK\src/peak/binding/_once.pyx", line 112, in _once.BaseDescriptor.__get__
File "C:\cygwin\home\pje\PEAK\src/peak/binding/_once.pyx", line 100, in _once.__get__
File "/usr/local/lib/python2.4/site-packages/peak/binding/once.py", line 539, in <lambda>
f = lambda s,d,a: func(s)
File "/usr/local/lib/python2.4/site-packages/peak/web/environ.py", line 174, in <lambda>
lambda self: posixpath.join(self.previous.absoluteURL, self.name),
File "/usr/local/lib/python2.4/posixpath.py", line 60, in join
if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
======================================================================
FAIL: Doctest: attributes.txt
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/peak/util/doctest.py", line 2163, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for attributes.txt
File "/usr/local/lib/python2.4/site-packages/peak/binding/attributes.txt", line 0
----------------------------------------------------------------------
File "/usr/local/lib/python2.4/site-packages/peak/binding/attributes.txt", line 157, in attributes.txt
Failed example:
type(Test)
Expected:
<type 'class'>
Got:
<type 'classobj'>
----------------------------------------------------------------------
Ran 815 tests in 9.273s
FAILED (failures=1, errors=4)
Script done on Tue Nov 30 14:54:58 2004
More information about the PEAK
mailing list