Re: Test fixture concepts (was: Zope test layers, pytest, and test isolation)
Jim Fulton <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 28, 2011 at 9:33 AM, Uli Fouquet <[email protected]> wrote: > Hi there, > > Benji York wrote: >> On Sun, Mar 27, 2011 at 10:54 AM, Uli Fouquet <[email protected]> wrote: >> > - `assert` works like you would expect it to work in tests. No need >> > to use `self.assertEqual()`` and friends (but you can if you prefer). >> >> How do they deal with the fact that assert statements are dropped when >> Python is run with -O? > > I think they don't. You get a warning if you do and, of course, reports > might become useless. I don't think they're that foolish. At least I hope they're not. I think they use a custom compiler. Jim -- Jim Fulton http://www.linkedin.com/in/jimfulton _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )