Package: csvkit / 2.1.0-1~exp1

Disable-locale-specific-test.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: csvstat (>= 1.1.0) adds locale-specific numeric grouping
 This patch disables a locale-specific grouping separator test and modifies
 another to succeed when running on LC_ALL=C.UTF-8
 See: https://github.com/wireservice/csvkit/pull/1180
Forwarded: not-needed
Author: tony mancill <tmancill@debian.org>

--- a/tests/test_utilities/test_csvstat.py
+++ b/tests/test_utilities/test_csvstat.py
@@ -154,9 +154,10 @@
         self.assertEqual(row[-2], 16.0)
 
     def test_decimal_format(self):
-        output = self.get_output(['-c', 'TOTAL', '--mean', 'examples/realdata/FY09_EDU_Recipients_by_State.csv'])
+        # Disable locale-specific LC_NUMERIC grouping separator test
+        # output = self.get_output(['-c', 'TOTAL', '--mean', 'examples/realdata/FY09_EDU_Recipients_by_State.csv'])
 
-        self.assertEqual(output, '9,748.346\n')
+        # self.assertEqual(output, '9,748.346\n')
 
         output = self.get_output([
             '-c', 'TOTAL', '--mean', '--no-grouping-separator', 'examples/realdata/FY09_EDU_Recipients_by_State.csv',
@@ -168,4 +169,5 @@
             '-c', 'TOTAL', '--mean', '--decimal-format', '%.2f', 'examples/realdata/FY09_EDU_Recipients_by_State.csv',
         ])
 
-        self.assertEqual(output, '9,748.35\n')
+        # Modify test to run under LC_ALL=C.UTF-8
+        self.assertEqual(output, '9748.35\n')