do3cc <> added the comment:


when you check out the branch and update to the old revision where I just
committed the test case, you see what happens, and what I expected. Your other
test cases don't trigger that exception.
I did it like that
svn up --revision=9820
and ran the tests, which did not return a wrong result but a traceback:

Failed example:
    print template.render(weight=32)
Exception raised:
    Traceback (most recent call last):
      File "/home/patrick/python/python-2.4.6/lib/python2.4/", line
1248, in __run
        compileflags, 1) in test.globs
      File "<doctest i18n.txt[52]>", line 1, in ?
        print template.render(weight=32)
      File "/home/patrick/.virtualenvs/chameleon/src/chameleon/zpt/",
line 17, in render
        return super(PageTemplate, self).render(*args, **kwargs)
"/home/patrick/.virtualenvs/chameleon/src/chameleon/core/", line 209,
in render
        return self.cook_and_render(kwargs, utils.emptydict, None, True)
"/home/patrick/.virtualenvs/chameleon/src/chameleon/core/", line 193,
in cook_and_render
        return func(econtext, rcontext)
      File "<string>", line 44, in render
    KeyError: 'amount'

A real life example is here:

Repoze Bugs <>
Repoze-dev mailing list

Reply via email to