Skip to content

Commit

Permalink
fix locale on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sdementen committed Apr 16, 2018
1 parent ee5c71e commit 7edcf92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -13,6 +13,7 @@ install:
- hash -r
- pip install pipenv==11.0.2
- pipenv install -e .[test] --ignore-pipfile
- locale-gen en_US.UTF-8

script:
- python setup.py test
Expand Down
2 changes: 1 addition & 1 deletion tests/test_session.py
Expand Up @@ -80,7 +80,7 @@ def test_get_system_currency_mnemonic_US():
# see https://docs.moodle.org/dev/Table_of_locales
locale.setlocale(locale.LC_ALL, 'English_United States.1252')
else:
locale.setlocale(locale.LC_ALL, 'en_US')
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')

assert get_system_currency_mnemonic() == "USD"

Expand Down

0 comments on commit 7edcf92

Please sign in to comment.