Skip to content

Commit

Permalink
New tentative with C locale
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonnotte committed Sep 10, 2016
1 parent b876296 commit dadf73c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,8 @@ matrix:
- JOB_TAG=_ASCII
- NOSE_ARGS="not slow and not network and not disabled"
- LOCALE_OVERRIDE="C"
- FULL_DEPS=true
- CLIPBOARD=xsel
- CACHE_NAME="35_ascii"
- USE_CACHE=true
addons:
apt:
packages:
- xsel
# In allow_failures
- python: 2.7
env:
Expand Down Expand Up @@ -240,14 +234,8 @@ matrix:
- JOB_TAG=_ASCII
- NOSE_ARGS="not slow and not network and not disabled"
- LOCALE_OVERRIDE="C"
- FULL_DEPS=true
- CLIPBOARD=xsel
- CACHE_NAME="35_ascii"
- USE_CACHE=true
addons:
apt:
packages:
- xsel
- python: 2.7
env:
- JOB_NAME: "doc_build"
Expand Down
8 changes: 5 additions & 3 deletions pandas/tools/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ def test_set_locale(self):
raise nose.SkipTest("Only a single locale found, no point in "
"trying to test setting another locale")

if LOCALE_OVERRIDE is not None:
lang, enc = LOCALE_OVERRIDE.split('.')
else:
if LOCALE_OVERRIDE is None:
lang, enc = 'it_CH', 'UTF-8'
elif LOCALE_OVERRIDE == 'C':
lang, enc = 'en_US', 'ascii'
else:
lang, enc = LOCALE_OVERRIDE.split('.')

enc = codecs.lookup(enc).name
new_locale = lang, enc
Expand Down

0 comments on commit dadf73c

Please sign in to comment.