John J Lee wrote:
> On Thu, 31 Aug 2006, Nick Coghlan wrote:
> [...]
>> I committed this fix as 51664 on the trunk (although the docstrings are still
>> example free because doctest doesn't understand __future__ statements).
> [...]
> 
> Assuming doctest doesn't try to parse the Python code when SKIP is 
> specified, I guess this would solve that little problem:
> 
> http://docs.python.org/dev/lib/doctest-options.html
> 
> """
> SKIP

A quick experiment suggests that using SKIP will solve the problem - fixing 
that can wait until 2.5.1 though. The localcontext() docstring does actually 
contain an example - it just isn't in a form that doctest will try to execute.

Cheers,
Nick.

-- 
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to