On Mon, Mar 28, 2011 at 9:33 AM, Uli Fouquet <u...@gnufix.de> wrote: > Hi there, > > Benji York wrote: >> On Sun, Mar 27, 2011 at 10:54 AM, Uli Fouquet <u...@gnufix.de> 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 - Zope-Dev@zope.org 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 )