[Python-modules-commits] r26682 - in packages/python-babel/trunk/debian (3 files)

zigo at users.alioth.debian.org zigo at users.alioth.debian.org
Fri Dec 6 14:17:10 UTC 2013


    Date: Friday, December 6, 2013 @ 14:17:09
  Author: zigo
Revision: 26682

Adds patch to fix-up locales in the currency name test, which caused FTBFS
in a sbuild chroot (Closes: #728425). Thanks Andrey Rahmatullin for
reporting, and James Page for his patch.

Added:
  packages/python-babel/trunk/debian/patches/0001-Fixup-get_currency_name-test.patch
  packages/python-babel/trunk/debian/patches/series
Modified:
  packages/python-babel/trunk/debian/changelog

Modified: packages/python-babel/trunk/debian/changelog
===================================================================
--- packages/python-babel/trunk/debian/changelog	2013-12-06 13:36:22 UTC (rev 26681)
+++ packages/python-babel/trunk/debian/changelog	2013-12-06 14:17:09 UTC (rev 26682)
@@ -2,6 +2,9 @@
 
   * Fixes upgrade from 1.3-2 that was deleting files from the -localedata
     folder (Closes: #728427).
+  * Adds patch to fix-up locales in the currency name test, which caused FTBFS
+    in a sbuild chroot (Closes: #728425). Thanks Andrey Rahmatullin for
+    reporting, and James Page for his patch.
 
  -- Thomas Goirand <zigo at debian.org>  Thu, 21 Nov 2013 16:23:56 +0000
 

Added: packages/python-babel/trunk/debian/patches/0001-Fixup-get_currency_name-test.patch
===================================================================
--- packages/python-babel/trunk/debian/patches/0001-Fixup-get_currency_name-test.patch	                        (rev 0)
+++ packages/python-babel/trunk/debian/patches/0001-Fixup-get_currency_name-test.patch	2013-12-06 14:17:09 UTC (rev 26682)
@@ -0,0 +1,19 @@
+Description: 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.
+Author: James Page <james.page at ubuntu.com>
+Date: Fri, 6 Dec 2013 11:49:26 +0000
+
+--- 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: packages/python-babel/trunk/debian/patches/series
===================================================================
--- packages/python-babel/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-babel/trunk/debian/patches/series	2013-12-06 14:17:09 UTC (rev 26682)
@@ -0,0 +1 @@
+0001-Fixup-get_currency_name-test.patch




More information about the Python-modules-commits mailing list