STY: use pytest.raises context syntax
There are still about a thousand non-context usages of pytest.raises.

@gfyoung if there is a subset of these that especially merit match kwargs, let me know.  I'm not eager to manually go through all of them, but doing something systematic or manually doing a few I'd be up for.