Ah, okay.  Thank you!

On Wed, Mar 27, 2013 at 8:12 PM, Warren Weckesser
<notifications@github.com>wrote:

> In scipy/io/matlab/tests/test_mio.py:
>
> > @@ -977,6 +977,11 @@ def test_loadmat_varnames():
> >      assert_equal(set(vars.keys()), set(['a'] + sys_v_names))
> >      vars = loadmat(eg_file, variable_names=['theta'])
> >      assert_equal(set(vars.keys()), set(['theta'] + sys_v_names))
> > +    vars = loadmat(eg_file, variable_names=('theta',))
> > +    assert_equal(set(vars.keys()), set(['theta'] + sys_v_names))
> > +    vnames = ['theta']
> > +    vars = loadmat(eg_file, variable_names=vnames)
> > +    assert vnames != [], 'List modified'
>
> If you run python with the -O option, assert statements are removed. E.g.
>
> $ python -c "assert False, 'uh oh'"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> AssertionError: uh oh
>
> but
>
> $ python -O -c "assert False, 'uh oh'"
> $
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/scipy/scipy/pull/486/files#r3557884>
> .
>



-- 
Louis Thibault
+33 6 40 24 06 05