unittest unpythonic? [Was: Re: Tidying up]

Martin Pool mbp at sourcefrog.net
Mon Apr 25 11:21:12 BST 2005


On Fri, 2005-04-15 at 11:42 +0100, Magnus Therning wrote:
> On Fri, Apr 15, 2005 at 11:54:48AM +0200, Fredrik Lundh wrote:
> >Magnus Therning wrote:
> >
> >> >I think unittest is rather ugly and unpythonic, so I don't know if I'd
> >> >really switch to that, but some tests in regular Python should be added.
> >>
> >> This is a bit off-topic, but I'm a curious soul. Feel free to take sthis
> >> off the mailing list if you want to.
> >>
> >> As I'm not a very experienced Python programmer I'm wondering what makes
> >> you say unittest is "unpythonic"?
> >
> >have you used doctest?
> 
> Nope, not yet. I actually didn't even know it existed. I've used
> unittest to some extent. I guess I went jUnit (mentioned in books on
> TDD) -> PyUnit -> unittest, and then I stopped.

I guess unittest is not all that bad, but it just seems a bit dependent
on defining lots of classes, which is more of a Java or Smalltalk style
than Python.  

-- 
Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050425/b99a6c94/attachment.pgp 


More information about the bazaar mailing list