TST: Silence some warnings.
TST: Small test optimizations.
TST: Add warning catches for indexing and inv and exp tests.
TST: Add warning catches to tests in sparse.linalg.
TST: remove duplicate with-statement in sparse/tests/test_base.py
Merge branch 'pr/2731' into master.

https://github.com/scipy/scipy/pull/2731