It doesn't work as a context manager on 2.6.  It works otherwise.  This seems to be because it calls nose which in turn uses unittest.   I need the context manager since I am testing a property assignment.

On Apr 3, 2014 12:10 PM, Josef Perktold <notifications@github.com> wrote:

In statsmodels/discrete/tests/test_discrete.py:

> @@ -388,8 +390,9 @@ def setupClass(cls):
>          res2.probit()
>          cls.res2 = res2
>          fit = Probit(data.endog, data.exog).fit
> -        cls.res1 = fit(method="basinhopping", disp=0, niter=5,
> -                       minimizer={'method' : 'L-BFGS-B', 'tol' : 1e-8})
> +        with assert_produces_warning(RuntimeWarning):


assert_raises from numpy should work across all python version, doesn't it? we used it for a long time
it should depend on nose not on python's unittest.

"known conditions" can be tooo messy.
Changes in scipy, different LAPACK/Blas versions, 64 versus 32, different "exotic" Debian versions. It's already a lot of work chasing "real" test failures

—
Reply to this email directly or view it on GitHub<https://github.com/statsmodels/statsmodels/pull/1507/files#r11246934>.