test_can_set_locale_invalid_get local failure
OSX 2.7

```
self = <pandas.tests.util.test_util.TestLocaleUtils object at 0x13db41290>, monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x13db41450>

    def test_can_set_locale_invalid_get(self, monkeypatch):
        # In some cases, an invalid locale can be set,
        # but a subsequent getlocale() raises a ValueError
        # See GH 22129
    
        def mockgetlocale():
            raise ValueError()
    
>       with monkeypatch.context() as m:
E       AttributeError: 'MonkeyPatch' object has no attribute 'context'
```