[Grok-dev] Broken tests on trunk?

Kevin Smith kevin at mcweekly.com
Wed Apr 25 14:34:28 EDT 2007


I just did a fresh buildout of the trunk and show some functional error 
tests starting at ftests/url

Failure in test url_function (grok.ftests.url)
Failed doctest test for grok.ftests.url.url_function
  File "/root/sandbox/trunk/src/grok/ftests/url/url_function.py", line 
1, in url_function

----------------------------------------------------------------------
File "/root/sandbox/trunk/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 
"/root/eggs/tmpEWMVkU/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 
"/root/sandbox/trunk/parts/zope3/src/zope/testbrowser/browser.py", line 
224, in open
        self.mech_browser.open(url, data)
      File 
"/root/sandbox/trunk/parts/zope3/src/mechanize/_mechanize.py", line 177, 
in open
        return self._mech_open(url, data)
      File 
"/root/sandbox/trunk/parts/zope3/src/mechanize/_mechanize.py", line 202, 
in _mech_open
        response = UserAgent.open(self, self.request, data)
      File "/root/sandbox/trunk/parts/zope3/src/mechanize/_opener.py", 
line 234, in open
        response = urlopen(self, req, data)
      File "/usr/local/lib/python2.4/urllib2.py", line 376, in _open
        '_open', req)
      File "/usr/local/lib/python2.4/urllib2.py", line 337, in _call_chain
        result = func(*args)
      File 
"/root/sandbox/trunk/parts/zope3/src/zope/testbrowser/testing.py", line 
123, in http_open
        return self.do_open(PublisherConnection, req)
      File "/usr/local/lib/python2.4/urllib2.py", line 993, in do_open
        h.request(req.get_method(), req.get_selector(), req.data, headers)
      File 
"/root/sandbox/trunk/parts/zope3/src/zope/testbrowser/testing.py", line 
80, in request
        self.response = self.caller(request_string, handle_errors)
      File 
"/root/sandbox/trunk/parts/zope3/src/zope/app/testing/functional.py", 
line 599, in __call__
        publish(request, handle_errors=handle_errors)
      File 
"/root/sandbox/trunk/parts/zope3/src/zope/publisher/publish.py", line 
130, in publish
        obj = request.traverse(obj)
      File 
"/root/sandbox/trunk/parts/zope3/src/zope/publisher/browser.py", line 
506, in traverse
        ob = super(BrowserRequest, self).traverse(obj)
      File "/root/sandbox/trunk/parts/zope3/src/zope/publisher/http.py", 
line 461, in traverse
        ob = super(HTTPRequest, self).traverse(obj)
      File "/root/sandbox/trunk/parts/zope3/src/zope/publisher/base.py", 
line 292, in traverse
        obj = publication.traverseName(self, obj, entry_name)
      File "/root/sandbox/trunk/src/grok/publication.py", line 33, in 
traverseName
        result = super(ZopePublicationSansProxy, self).traverseName(
      File 
"/root/sandbox/trunk/parts/zope3/src/zope/app/publication/publicationtraverse.py", 
line 61, in traverseName
        ob2 = adapter.publishTraverse(request, nm)
      File "/root/sandbox/trunk/src/grok/components.py", line 330, in 
publishTraverse
        raise NotFound(self.context, name, request)
    NotFound: Object: <grok.ftests.url.url.Mammoth object at 
0x417143ac>, name: u'index'



More information about the Grok-dev mailing list