Package: python-babel Version: 1.3+dfsg.1-1 Followup-For: Bug #728425 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu trusty ubuntu-patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: * d/p/0001-Fixup-get_currency_name-test.patch: Make test for get_currency_name deterministic and add check for plurality. I submitted this upstream as well: https://github.com/mitsuhiko/babel/pull/73 Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers trusty-updates APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 'trusty'), (100, 'trusty-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.12.0-4-generic (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
=== added directory 'debian/patches' === added file 'debian/patches/0001-Fixup-get_currency_name-test.patch' --- debian/patches/0001-Fixup-get_currency_name-test.patch 1970-01-01 00:00:00 +0000 +++ debian/patches/0001-Fixup-get_currency_name-test.patch 2013-12-06 11:53:11 +0000 @@ -0,0 +1,26 @@ +From 50f727ac2c741877235c592ce4e1f50bba08162c Mon Sep 17 00:00:00 2001 +From: James Page <james.p...@ubuntu.com> +Date: Fri, 6 Dec 2013 11:49:26 +0000 +Subject: [PATCH] Fixup get_currency_name test + +This test failed in environments where no default locale +can be determined; make the test deterministic and add +additional test for plurality. + +Signed-off-by: James Page <james.p...@ubuntu.com> +--- + tests/test_numbers.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- a/tests/test_numbers.py ++++ b/tests/test_numbers.py +@@ -173,7 +173,8 @@ class NumberParsingTestCase(unittest.Tes + + + def test_get_currency_name(): +- assert numbers.get_currency_name('USD', 'en_US') == u'US dollars' ++ assert numbers.get_currency_name('USD', locale='en_US') == u'US Dollar' ++ assert numbers.get_currency_name('USD', count=2, locale='en_US') == u'US dollars' + + + def test_get_currency_symbol(): === added file 'debian/patches/series' --- debian/patches/series 1970-01-01 00:00:00 +0000 +++ debian/patches/series 2013-12-06 11:52:48 +0000 @@ -0,0 +1 @@ +0001-Fixup-get_currency_name-test.patch