summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIsaac Jurado <diptongo@gmail.com>2014-11-05 17:15:08 +0100
committerIsaac Jurado <diptongo@gmail.com>2015-08-05 16:43:55 +0200
commit3ef0d6daaff4e9e2b60706e27034c9043b725483 (patch)
tree70e62c455d854a71f0b421bd0b6d1174cba6144a /tests
parent504aafe5395061c6a2c9fbbb92bc6646a379633f (diff)
downloadbabel-3ef0d6daaff4e9e2b60706e27034c9043b725483.tar.gz
localedata: Check inheritance exceptions first
When deriving the parent locale from the given name, look first in the inheritance exception list. This will cover cases like "es_MX", which parent is "es_419" and not "es". Fixes https://github.com/mitsuhiko/babel/issues/97
Diffstat (limited to 'tests')
-rw-r--r--tests/test_numbers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_numbers.py b/tests/test_numbers.py
index 02332fb..6fe67c0 100644
--- a/tests/test_numbers.py
+++ b/tests/test_numbers.py
@@ -243,7 +243,7 @@ def test_format_currency():
assert (numbers.format_currency(1099.98, 'USD', locale='en_US')
== u'$1,099.98')
assert (numbers.format_currency(1099.98, 'USD', locale='es_CO')
- == u'1.099,98\xa0US$')
+ == u'US$1.099,98')
assert (numbers.format_currency(1099.98, 'EUR', locale='de_DE')
== u'1.099,98\xa0\u20ac')
assert (numbers.format_currency(1099.98, 'EUR', u'\xa4\xa4 #,##0.00',