Skip to content

mmap error is not always returned in English #13507

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
wants to merge 1 commit into from
Closed

mmap error is not always returned in English #13507

wants to merge 1 commit into from

Conversation

nparley
Copy link
Contributor

@nparley nparley commented Jun 23, 2016

Fixes a build error from #12946 caused by mmap error being returned in Italian when LOCALE_OVERRIDE="it_IT.UTF-8". The test fails with:

AssertionError: "Invalid argument" does not match "[Errno 22] Argomento non valido"

        msg = "Invalid argument"
        tm.assertRaisesRegexp(mmap.error, msg, common.MMapWrapper, non_file)

i.e. message is not being matched. Change to match the errno instead as that's the same across languages.

@jreback jreback added the Compat pandas objects compatability with Numpy or Python functions label Jun 23, 2016
@jreback jreback added this to the 0.18.2 milestone Jun 23, 2016
@jreback
Copy link
Contributor

jreback commented Jun 23, 2016

this is fine, though equally could have just skipped this when locale is set.

@jreback jreback closed this in f42283d Jun 23, 2016
@nparley nparley deleted the mmap-test-fix branch June 27, 2016 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants