[Python-3000] doctests vs. unittests (was Re: pimp; restructuring the standard library)

Guido van Rossum guido at python.org
Fri Jun 29 19:09:19 CEST 2007


On 6/29/07, Leonardo Santagada <santagada at gmail.com> wrote:
>
> Em 29/06/2007, às 11:49, Guido van Rossum escreveu:
>
> > If I have any say in it, unittest isn't going away (unless replaced by
> > something very similar, and doctest ain't it). Religion is all fine
> > and well, as long as there's room for other views. I personally find
> > using unit tests a lot easier than using doctest, for many of the
> > things I tend to do (and most of my co-workers at Google see it that
> > way, too).
>
> py.test is similar enough to replace unittest?

I've never looked at py.test, so I can't tell. There needs to be a
100% backwards-compatible API so existing unittests don't need to be
changed (as they are the cornerstone of any transition to Python
3000).

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list