On Mon, Dec 7, 2009 at 23:12, Jim Fulton <j...@zope.com> wrote:
> On Mon, Dec 7, 2009 at 4:08 PM, Lennart Regebro <rege...@gmail.com> wrote:
> ...
>> I really think it's a bad idea to have a special version of
>> doctest.py.
> I agree.
>> I think we should get rid of it. That means either
>> dropping this feature, or getting it merged into Python 2.7 and 3.2.
>> The 2.7 beta is out now, so it's pretty urgent. I strongly suspect
>> it's going to be practically impossible to support zope.testing from
>> the same test-base otherwise.
>> Opinions?
> It's going to be hard in any case.  I sort of see manuel as a replacement for
> our customized doctest module.  I'd change the packages that currently
> rely on the
> customizations to not rely on them, either by not using the special features,
> or by switching to manuel. Whatever we decide is going to be a bit of work.

OK, I'm going to try to remove doctest.py from my branch, then, and
also add some deprecation to it in trunk.

On Mon, Dec 7, 2009 at 23:13, Benji York <be...@zope.com> wrote:
> On Mon, Dec 7, 2009 at 4:08 PM, Lennart Regebro <rege...@gmail.com> wrote:
>> For example: Exceptions in Python 3 print out the whole module path of
>> the exception, while in Python 2 it's only the classname: Immediate
>> doctest failure. This is fixable in your doctests by trapping the
>> exception instead, which is what I've done.
> You can also use a normalizer.  They make dealing with these sorts of
> inter-Python formatting differences pretty easy.

Hmm. Yeah, a general Python 3 normalizer could maybe be useful. That's
worth a try.

Lennart Regebro: Python, Zope, Plone, Grok
+33 661 58 14 64
Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to