the unit tests tell me
Error in test testCanonicalPath (zope.app.traversing.tests.test_conveniencefunct
Traceback (most recent call last):
  File "C:\ZopeSubversion\Z3_SSH-2\src\zope\app\traversing\tests\test_convenienc
efunctions.py", line 262, in testCanonicalPath
    self.assertRaises(error_type, canonicalPath, value)
  File "c:\programme\python23\lib\unittest.py", line 289, in failUnlessRaises
    callableObj(*args, **kwargs)
  File "C:\ZopeSubversion\Z3_SSH-2\src\zope\app\traversing\api.py", line 238, in
    raise ValueError('canonical path must start with a "/": %s' % path)
ValueError: canonical path must start with a "/": 23

The docstring in function canonicalPath is
    """Returns a canonical absolute unicode path for the given path or object.

    Resolves segments that are '.' or '..'.

    Raises ValueError if a badly formed path is given.

The definition of bad locations in the test program begins:
        _bad_locations = (
            (UnicodeError, '\xa323'),

Should "UnicodeError" be changed into "ValueError"?

Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to