Skip to content

test_can_set_locale_invalid_get local failure #22353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jbrockmendel opened this issue Aug 14, 2018 · 2 comments
Closed

test_can_set_locale_invalid_get local failure #22353

jbrockmendel opened this issue Aug 14, 2018 · 2 comments

Comments

@jbrockmendel
Copy link
Member

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'
@WillAyd
Copy link
Member

WillAyd commented Aug 14, 2018

Related to #22319 need to bump your local pytest to 3.6

@jbrockmendel
Copy link
Member Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants