[PEAK] peak test errors
Phillip J. Eby
pje at telecommunity.com
Tue Nov 30 17:06:23 EST 2004
At 03:00 PM 11/30/04 -0500, R. David Murray wrote:
>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.
The KeyError:313 looks like there must be a new syntax production for
tuples in the 2.4 grammar. I'll take a closer look as soon as I can.
>======================================================================
>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'
Hrm. Looks like there's been a change to posixpath.join; I'll have to see
what's up with that.
>======================================================================
>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'>
That's easy enough to fix, I'll just look for "<type 'class...'>".
More information about the PEAK
mailing list