[Zope3-dev] Handling object memory addresses in doctests
Jim Fulton
jim at zope.com
Thu Feb 10 13:03:14 EST 2005
Tim Peters wrote:
> [Garrett Smith]
>
>>As I haven't kept up on all of the latest enhancements to the doctest
>>framework, is threre now a way to handle object memory addresses in
>>doctests? E.g. this has been a problem:
>>
>> Traceback (most recent call last):
>> NotFoundError: (<Foo object at 0x010E90D0>, 'foo')
>
>
> doctest is part of Python, so the Python docs are the place to look.
> A pile of new "doctest directives" appeared in Python 2.4
And note that Zope 3 (and soon, the Zope 2 trunk) use a
copy of the Python 2.4 doctest.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-dev
mailing list