[Zope-dev] Test fixture concepts (was: Zope test layers, pytest, and test isolation)

Jim Fulton jim at zope.com
Mon Mar 28 10:05:51 EDT 2011


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


More information about the Zope-Dev mailing list