naylor-b/testflo

some warnings are being swallowed by testflo

Closed this issue · 1 comments

For example:

test_simple_paraboloid_constrained_COBYLA (openmdao.drivers.test.test_scipy_optimizer.TestScipyOptimize) ... /home/bret/anaconda/envs/clippy/lib/python2.7/site-packages/scipy/optimize/_minimize.py:377: RuntimeWarning: Method COBYLA cannot handle bounds.
RuntimeWarning)

is displayed when running nosetests, but not testflo, even when -s is set.

Warnings were being lost because I was only capturing stderr if an exception was raised. This will be fixed in the next merge.