ENH: optimize: curve_fit now warns if pcov is undetermined

This is IMO a bit too heavy-handed: there's no need to skip a test a known failure just for silencing a warning. How about just this: 
https://github.com/ev-br/scipy/commit/9fd7a83d2be1e3ffe7d28b0dc2ee11649eff2e01