-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Test for Python 3.5 with C locale #14114
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
Conversation
Current coverage is 85.24% (diff: 100%)@@ master #14114 diff @@
==========================================
Files 140 140
Lines 50556 50556
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 43095 43095
Misses 7461 7461
Partials 0 0
|
This is disappointing. I added a travis job with LC_ALL=C, and the tests still succeed: https://travis-ci.org/pydata/pandas/jobs/155766390 The new locale seems to be taken into account, since travis says
But on my computer,
I'm missing something, obviously. I'm going to try with Python 3.5, which is what I'm using on my computer, but I don't see how that could change things. |
apt: | ||
packages: | ||
- xsel | ||
# In allow_failures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line (as its duped)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What line should I remove, exactly?
so the JOB_NAME determines which files to pick up in the |
There is no I don't understand, the new test does not show up in Travis. It was the case with the previous commit, even though the new test was not in the "allowed failures". But it disappeared with my last commit... |
@nbonnotte You have to add it in both places (both in the base matrix, as repeat it in the allowed failures section. As you had it in the first commit I think) |
It works! I mean, it fails: https://travis-ci.org/pydata/pandas/jobs/157552565 |
great! I think something up with the locale string itself - it doesn't seem to fully parse (error above the latex one); the final error is tagged in another issue |
this looks wrong |
@jreback I've set the locale to "C", which unlike "en_US.UTF-8" or "fr_FR.UTF-8" doesn't have any dot in it. Is it wrong? How should I set the system encoding to ascii? Edit: I'll try with ANSI_X3.4-1968 |
@nbonnotte I have no idea what to put here
looks like you need, country.encoding maybe? look thru python docs |
ANSI_X3.4-1968 doesn't work:
What locale should we use? |
@jreback I have searched! The thing is, all I doubt BTW, is it not wrong to assume that all locale settings match this pattern,
|
I was giving I am example of what other tests use the locale utility is only for testing |
Which locale are available, then? |
@jreback is this an acceptable solution? |
- CLIPBOARD=xsel | ||
- CACHE_NAME="35_ascii" | ||
- USE_CACHE=true | ||
addons: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can take the CLIPBOARD
and FULL_DEPS
vars off both section
can you update & rebase |
thanks! ok if you'd submit on the fix for the issue would be great! |
As @jreback suggested, I'm adding an alternate py3 build to change LOCALE, based on the 3.4 slow build, to reveal some encoding bugs (see #12337)
I'm new to configuring Travis, I just hope this will work as I expect and that the tests will fail.
git diff upstream/master | flake8 --diff