[PEAK] Current cvs peak errors
Alain Poirier
alain.poirier at net-ng.com
Wed Dec 1 05:25:06 EST 2004
Hi Phillip,
> At 01:37 PM 11/30/04 -0500, R. David Murray wrote:
> >I did a cvs up today and reinstalled peak. My program stopped
> >working (*wry grin*). I ran peak test and got some errors, but
> >none of them seem to have anything to do with the problem that shows
> >up in my program. It is quite possible I'm doing something wrong
> >that is triggering this, but was masked by something in the previous
> >version of the peak code. But since some of the peak tests fail,
>
> FYI: as far as I can recall, I have never intentionally checked in code
> that would break the unit tests, and try to always keep the trunk
> stable. If you find failures in peak tests, please report them to me
> ASAP.
Here I've got these 2 errors (python 2.3.4, fresh peak install from CVS
today) :
............................................................................
............................................................................
............................................................................
............................................................................
.....................E......................................................
............................................................................
............................................................................
............................................................................
.................F..........................................................
............................................................................
.......................................................
======================================================================
ERROR: checkSchemaLookup (peak.config.tests.ZConfigTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/peak/config/tests/__init__.py",
line 391, in checkSchemaLookup
ob = testRoot().lookupComponent(
File "/usr/lib/python2.3/site-packages/peak/binding/components.py", line
397, in lookupComponent
result = adapt(name, IComponentKey).findComponent( component, default )
File "/usr/lib/python2.3/site-packages/peak/naming/names.py", line 198, in
findComponent
return lookup(
File "/usr/lib/python2.3/site-packages/peak/naming/api.py", line 53, in
lookup
return InitialContext(parent, **options).lookup(name,default)
File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 398,
in lookup
return self[name]
File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 357,
in __getitem__
if ctx is not self: return ctx[name]
File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 359,
in __getitem__
obj = self._getOb(name)
File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 445,
in _getOb
return self._deref(state, name)
File "/usr/lib/python2.3/site-packages/peak/naming/contexts.py", line 293,
in _deref
return ob.restore(self, name)
File
"/usr/lib/python2.3/site-packages/peak/naming/factories/references.py",
line 34, in restore
return factory.getObjectInstance(context, self, name)
File "/usr/lib/python2.3/site-packages/peak/config/load_zconfig.py", line
38, in getObjectInstance
return self.loadFile(ob.open('t'), str(url))
File "/usr/lib/python2.3/site-packages/ZConfig/loader.py", line 80, in
loadFile
return self.loadResource(r)
File "/usr/lib/python2.3/site-packages/peak/config/load_zconfig.py", line
48, in loadResource
result = super(SchemaLoader,self).loadResource(resource)
File "/usr/lib/python2.3/site-packages/ZConfig/loader.py", line 137, in
loadResource
schema = ZConfig.schema.parseResource(resource, self)
File "/usr/lib/python2.3/site-packages/ZConfig/schema.py", line 43, in
parseResource
xml.sax.parse(resource.file, parser)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/__init__.py", line 31,
in parse
parser.parse(filename_or_stream)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line
109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", line
123, in parse
self.feed(buffer)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line
216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line
395, in external_entity_ref
self._source.getSystemId() or
File "/usr/lib/python2.3/site-packages/_xmlplus/sax/saxutils.py", line
515, in prepare_input_source
f = urllib2.urlopen(source.getSystemId())
File "/usr/lib/python2.3/urllib2.py", line 129, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.3/urllib2.py", line 324, in open
type_ = req.get_type()
File "/usr/lib/python2.3/urllib2.py", line 226, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url
type: /usr/lib/python2.3/site-packages/ZConfig/doc/schema.dtd
======================================================================
FAIL: testHeaderFormats (wsgiref.tests.test_handlers.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/wsgiref/tests/test_handlers.py",
line 203, in testHeaderFormats
(stdpat%(version,sw), h.stdout.getvalue())
File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
if not expr: raise self.failureException, msg
AssertionError: ('HTTP/1.0 200 OK\\r\\nDate: \\w{3} \\w{3} \\d{2} \\d\\d:
\\d\\d:\\d\\d \\d{4}\\r\\nServer: FooBar/1.0\r\nContent-Length:
0\\r\\n\\r\\n', 'HTTP/1.0 200 OK\r\nDate: Wed Dec 1 10:12:34
2004\r\nServer: FooBar/1.0\r\nContent-Length: 0\r\n\r\n')
----------------------------------------------------------------------
Ran 815 tests in 5.487s
FAILED (failures=1, errors=1)
--
Alain POIRIER,
Directeur technique
_______________________________________________________________________
Net-ng
Immeuble Germanium
80 av. des Buttes de Coesmes Web : http://www.net-ng.com
35700 RENNES Email: alain.poirier at net-ng.com
FRANCE
_______________________________________________________________________
Ce message et tout document joint sont confidentiels. Toute diffusion
ou publication en est interdite. Si vous recevez ce message par erreur,
merci d'en avertir immédiatement l'expéditeur par email et de supprimer
ce message et tout document joint.
More information about the PEAK
mailing list