[Grok-dev] Re: Broken tests on trunk?
Kevin Smith
kevin at mcweekly.com
Thu Apr 26 12:41:21 EDT 2007
Philipp, thanks for testing. Wow, what a mystery.
I tried again but with the same results using a fresh OS install:
* fresh Ubuntu virtual machine
* python2.4.4c
* fresh checkout of trunk
* fresh workingenv.py
* ran bootstrap/bootstrap.py
* bin/buildout
* bin/test
Same errors as last time starting at ftests/url. Also tried it without
workingenv.
Note: I do not get this error on one of my older buildouts.
Failure in test url_function (grok.ftests.url)
Failed doctest test for grok.ftests.url.url_function
File "/home/notroot/sandbox/grok/src/grok/ftests/url/url_function.py",
line 1, in url_function
----------------------------------------------------------------------
File "/home/notroot/sandbox/grok/src/grok/ftests/url/url_function.py",
line 21, in grok.ftests.url.url_function
Failed example:
browser.open("http://localhost/herd/manfred/index")
Exception raised:
Traceback (most recent call last):
File
"/home/notroot/sandbox/grok/eggs/tmpDvCR3Z/zope.testing-3.4-py2.4.egg/zope/testing/doctest.py",
line 1348, in __run
specified, then it will default to the set of future-import
File "<doctest grok.ftests.url.url_function[11]>", line 1, in ?
browser.open("http://localhost/herd/manfred/index")
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/testbrowser/browser.py",
line 224, in open
self.mech_browser.open(url, data)
File
"/home/notroot/sandbox/grok/parts/zope3/src/mechanize/_mechanize.py",
line 177, in open
return self._mech_open(url, data)
File
"/home/notroot/sandbox/grok/parts/zope3/src/mechanize/_mechanize.py",
line 202, in _mech_open
response = UserAgent.open(self, self.request, data)
File
"/home/notroot/sandbox/grok/parts/zope3/src/mechanize/_opener.py", line
234, in open
response = urlopen(self, req, data)
File "urllib2.py", line 376, in _open
'_open', req)
File "urllib2.py", line 337, in _call_chain
result = func(*args)
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/testbrowser/testing.py",
line 123, in http_open
return self.do_open(PublisherConnection, req)
File "urllib2.py", line 993, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/testbrowser/testing.py",
line 80, in request
self.response = self.caller(request_string, handle_errors)
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/app/testing/functional.py",
line 599, in __call__
publish(request, handle_errors=handle_errors)
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/publisher/publish.py",
line 130, in publish
obj = request.traverse(obj)
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/publisher/browser.py",
line 506, in traverse
ob = super(BrowserRequest, self).traverse(obj)
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/publisher/http.py",
line 461, in traverse
ob = super(HTTPRequest, self).traverse(obj)
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/publisher/base.py",
line 292, in traverse
obj = publication.traverseName(self, obj, entry_name)
File "/home/notroot/sandbox/grok/src/grok/publication.py", line
33, in traverseName
result = super(ZopePublicationSansProxy, self).traverseName(
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/app/publication/publicationtraverse.py",
line 61, in traverseName
ob2 = adapter.publishTraverse(request, nm)
File "/home/notroot/sandbox/grok/src/grok/components.py", line
330, in publishTraverse
raise NotFound(self.context, name, request)
NotFound: Object: <grok.ftests.url.url.Mammoth object at
0xb69971ac>, name: u'index'
----------------------------------------------------------------------
File "/home/notroot/sandbox/grok/src/grok/ftests/url/url_function.py",
line 22, in grok.ftests.url.url_function
Failed example:
print browser.contents
Exception raised:
Traceback (most recent call last):
File
"/home/notroot/sandbox/grok/eggs/tmpDvCR3Z/zope.testing-3.4-py2.4.egg/zope/testing/doctest.py",
line 1348, in __run
specified, then it will default to the set of future-import
File "<doctest grok.ftests.url.url_function[12]>", line 1, in ?
print browser.contents
File
"/home/notroot/sandbox/grok/parts/zope3/src/zope/testbrowser/browser.py",
line 188, in contents
old_location = response.tell()
AttributeError: 'NoneType' object has no attribute 'tell'
...
More information about the Grok-dev
mailing list