~ruther/guix-local

ref: 01e6cd7ea8b5b10fe3d5bf2bf4f4107a182e85cd guix-local/gnu/packages/patches/csvkit-set-locale-for-tests.patch -rw-r--r-- 388 bytes
01e6cd7e — Andreas Enge gnu: Rename sagemath-data-combinatorial-designs. 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
Contents copied from python-agate. See
https://github.com/wireservice/agate/issues/712 for the source and the
rationale.

diff --git a/tests/__init__.py b/tests/__init__.py
index e69de29..ee8beb5 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -0,0 +1,4 @@
+import locale
+
+# The test fixtures can break if the locale is non-US.
+locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')