unittest vs py.test?

Jeremy Bowers jerf at jerf.org
Mon Apr 4 19:26:29 EDT 2005


On Mon, 04 Apr 2005 22:50:35 +0000, John J. Lee wrote:
> What I don't understand about py.test (and trying it out seems
> unlikely to answer this) is why it uses the assert statement.
> unittest used to do that, too, but then it was pointed out that that
> breaks when python -O is used, so unittest switched to self.assert_
> &c.  Does py.test have some way around that?

"Don't use -O because it doesn't do anything significant?"

Is this an issue in practice? (Honest question.) If -O did something
interesting I might use it, but I don't think it does. 





More information about the Python-list mailing list