[Zope3-dev] doctest prb again

Adam Groszer agroszer at gmail.com
Fri Jul 20 04:09:18 EDT 2007


Hello,

How to solve the \r\n and \n mismatch between win32 and *nix in the
doctests?

doctest is:
"""
    >>> ctrl.value
    '        Text inside\n        area!\n      '
"""

fails with (on win32):
"""
Failed example:
    ctrl.value
Expected:
    '        Text inside\n        area!\n      '
Got:
    '          Text inside\r\n          area!\r\n        '
"""

ctrl.value comes from a html file in zope.testbrowser.ftests
-- 
Best regards,
 Adam                          mailto:agroszer at gmail.com



More information about the Zope3-dev mailing list