28 Mar
2011
28 Mar
'11
2:05 p.m.
On Mon, Mar 28, 2011 at 9:33 AM, Uli Fouquet <uli@gnufix.de> wrote:
Hi there,
Benji York wrote:
On Sun, Mar 27, 2011 at 10:54 AM, Uli Fouquet <uli@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