[Grok-dev] Re: strange test failures on trunk
Martijn Faassen
faassen at startifact.com
Tue Jan 22 05:57:17 EST 2008
Hi there,
I just did some digging, though it doesn't resolve the mystery yet. The
problem is that zope.deprecation.tests.warn tries to find a line to
display in the module that caused the warning, presumably the line that
caused the warning to be issued.
For some reason it picks up zope.configuration.config instead of the
actual module it should be getting. It looks for a line number in there,
and will find something out of the middle of a doctests in that module:
>>> definition['sub'] = Iab, ''
If I change grk.templatereg's 'checkUnassociated' from this:
def checkUnassociated(self, module_info):
unassociated = list(self.listUnassociated())
if unassociated:
msg = (
"Found the following unassociated template(s) when "
"grokking %r: %s. Define view classes inheriting "
"from grok.View to enable the template(s)." % (
module_info.dotted_name, ', '.join(unassociated)))
warnings.warn(msg, UserWarning, 2)
to instead use the stacksize of 3 (instead of 2), tests on my machine pass.
Unfortunately, tests pass for others on their machine with a stacksize of 2!
I do not understand how my Grok differs from their Grok. Perhaps an egg
got changed without a new version number being released? I will clear my
egg cache entirely to see whether that will help.
Regards,
Martijn
More information about the Grok-dev
mailing list