TST: silence warning from testing optimize.curve_fit with infs.
TST: clean up optimize tests (no test docstrings, Github issue numbers).
TST: silence test warnings for invalids for stats.nanmean/nanstd.
Merge pull request #4263 from rgommers/clean-testnoise

MAINT: clean up test noise and optimize tests for docstrings and Trac issue numbers