[Zope3-dev] zope\app\container\contained.py

E. Frerich e.frerich at nord-com.net
Tue May 24 15:12:47 EDT 2005


Hello,

line 545 of zope\app\container\contained.py contains a testcase
">>> setitem(container, container.__setitem__, 'hello ' + chr(200), item)"
which should give back a traceback:
"    Traceback (most recent call last):
    ...
    TypeError: name not unicode or ascii string
"
but the name parameter is correct:
"
>>> max=unicode('hello ' + chr(200))
>>> max
u'hello \xc8'
>>>
"
So the unit tests give a failure:
"
----------------------------------------------------------------------
File "C:\ZopeSubversion\Z3_SSH-2\src\zope\app\container\contained.py", line 545,
 in zope.app.container.contained.setitem
Failed example:
    setitem(container, container.__setitem__, 'hello ' + chr(200), item)
Expected:
    Traceback (most recent call last):
    ...
    TypeError: name not unicode or ascii string
Got nothing
"
What should be done?

Regards,

Egon



More information about the Zope3-dev mailing list