[Grok-dev] failing (security?) tests on grok trunk
Martijn Faassen
faassen at startifact.com
Fri Aug 24 05:27:10 EDT 2007
Hi there,
Latest grok trunk, buildout -n gives me two test failures:
Failure in test grant (grok.ftests.security)
Failed doctest test for grok.ftests.security.grant
File "/home/faassen/buildout/grok/src/grok/ftests/security/grant.py",
line 1, in grant
----------------------------------------------------------------------
File "/home/faassen/buildout/grok/src/grok/ftests/security/grant.py",
line 19, in grok.ftests.security.grant
Failed example:
browser.getControl('Apply').click()
Exception raised:
Traceback (most recent call last):
File
"/home/faassen/eggs/tmpk2ruXG/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
File "<doctest grok.ftests.security.grant[9]>", line 1, in ?
browser.getControl('Apply').click()
File
"/home/faassen/eggs/zope.testbrowser-3.4.0-py2.4.egg/zope/testbrowser/browser.py",
line 591, in click
self.browser._clickSubmit(self.mech_form, self.mech_control, (1,1))
File
"/home/faassen/eggs/zope.testbrowser-3.4.0-py2.4.egg/zope/testbrowser/browser.py",
line 380, in _clickSubmit
self.mech_browser.open(form.click(
File
"/home/faassen/eggs/zope.testbrowser-3.4.0-py2.4.egg/mechanize/_mechanize.py",
line 177, in open
return self._mech_open(url, data)
File
"/home/faassen/eggs/zope.testbrowser-3.4.0-py2.4.egg/mechanize/_mechanize.py",
line 202, in _mech_open
response = UserAgent.open(self, self.request, data)
File
"/home/faassen/eggs/zope.testbrowser-3.4.0-py2.4.egg/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/faassen/eggs/zope.testbrowser-3.4.0-py2.4.egg/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/faassen/eggs/zope.testbrowser-3.4.0-py2.4.egg/zope/testbrowser/testing.py",
line 80, in request
self.response = self.caller(request_string, handle_errors)
File
"/home/faassen/eggs/tmp8WCswB/zope.app.testing-3.4.0b1_r78707-py2.4.egg/zope/app/testing/functional.py",
line 696, in __call__
File
"/home/faassen/eggs/tmpuNODu-/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/publish.py",
line 133, in publish
File "/home/faassen/buildout/grok/src/grok/publication.py", line
41, in callObject
return super(ZopePublicationSansProxy,
self).callObject(request, ob)
File
"/home/faassen/eggs/tmpUaj4Oe/zope.app.publication-3.4.0a1_2-py2.4.egg/zope/app/publication/zopepublication.py",
line 167, in callObject
File
"/home/faassen/eggs/tmpuNODu-/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/publish.py",
line 108, in mapply
File
"/home/faassen/eggs/tmpuNODu-/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/publish.py",
line 114, in debug_call
File
"/home/faassen/eggs/tmpX8LXPP/zope.app.pagetemplate-3.4.0b1dev_r75616-py2.4.egg/zope/app/pagetemplate/simpleviewclass.py",
line 44, in __call__
File
"/home/faassen/eggs/tmpX8LXPP/zope.app.pagetemplate-3.4.0b1dev_r75616-py2.4.egg/zope/app/pagetemplate/viewpagetemplatefile.py",
line 83, in __call__
File
"/home/faassen/eggs/tmpX8LXPP/zope.app.pagetemplate-3.4.0b1dev_r75616-py2.4.egg/zope/app/pagetemplate/viewpagetemplatefile.py",
line 51, in __call__
File
"/home/faassen/eggs/tmpGEO9Yk/zope.pagetemplate-3.4.0a1-py2.4.egg/zope/pagetemplate/pagetemplate.py",
line 115, in pt_render
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 271, in __call__
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 346, in interpret
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 891, in do_useMacro
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 346, in interpret
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 536, in do_optTag_tal
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 521, in do_optTag
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 516, in no_tag
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 346, in interpret
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 861, in do_defineMacro
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 346, in interpret
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 957, in do_defineSlot
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 346, in interpret
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 949, in do_defineSlot
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 346, in interpret
File
"/home/faassen/eggs/tmppvk9gN/zope.tal-3.4.0b1-py2.4.egg/zope/tal/talinterpreter.py",
line 586, in do_setLocal_tal
File
"/home/faassen/eggs/tmpwZa0_P/zope.tales-3.4.0a1-py2.4.egg/zope/tales/tales.py",
line 696, in evaluate
File
"/home/faassen/eggs/tmpwZa0_P/zope.tales-3.4.0a1-py2.4.egg/zope/tales/expressions.py",
line 217, in __call__
File
"/home/faassen/eggs/tmpwZa0_P/zope.tales-3.4.0a1-py2.4.egg/zope/tales/expressions.py",
line 211, in _eval
File
"/home/faassen/eggs/tmpKqsxTa/zope.app.securitypolicy-3.4.0a1-py2.4.egg/zope/app/securitypolicy/browser/granting.py",
line 174, in status
File
"/home/faassen/eggs/tmpc7dFz8/zope.schema-3.4.0b1dev_r77624-py2.4.egg/zope/schema/_field.py",
line 264, in __init__
File
"/home/faassen/eggs/tmpc7dFz8/zope.schema-3.4.0b1dev_r77624-py2.4.egg/zope/schema/_bootstrapfields.py",
line 108, in __init__
File
"/home/faassen/eggs/tmpc7dFz8/zope.schema-3.4.0b1dev_r77624-py2.4.egg/zope/schema/fieldproperty.py",
line 52, in __set__
File
"/home/faassen/eggs/tmpc7dFz8/zope.schema-3.4.0b1dev_r77624-py2.4.egg/zope/schema/_bootstrapfields.py",
line 138, in validate
File
"/home/faassen/eggs/tmpc7dFz8/zope.schema-3.4.0b1dev_r77624-py2.4.egg/zope/schema/_bootstrapfields.py",
line 263, in _validate
File
"/home/faassen/eggs/tmpc7dFz8/zope.schema-3.4.0b1dev_r77624-py2.4.egg/zope/schema/_bootstrapfields.py",
line 165, in _validate
WrongType: ('Painting Owner', <type 'unicode'>)
----------------------------------------------------------------------
File "/home/faassen/buildout/grok/src/grok/ftests/security/grant.py",
line 20, in grok.ftests.security.grant
Failed example:
'grok.ascii-permission' in browser.contents
Exception raised:
Traceback (most recent call last):
File
"/home/faassen/eggs/tmpk2ruXG/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
File "<doctest grok.ftests.security.grant[10]>", line 1, in ?
'grok.ascii-permission' in browser.contents
File
"/home/faassen/eggs/zope.testbrowser-3.4.0-py2.4.egg/zope/testbrowser/browser.py",
line 188, in contents
old_location = response.tell()
AttributeError: 'NoneType' object has no attribute 'tell'
Regards,
Martijn
More information about the Grok-dev
mailing list