mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: csvkit: Fix tests.
* gnu/packages/wireservice.scm (csvkit): Fix tests [source]: Apply patch. [native-inputs]: Add (libc-utf8-locales-for-target). * gnu/packages/patches/csvkit-set-locale-for-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Change-Id: I787c0da270fa4062491efcfa0c55a1b8bbac7b59 Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
parent
16d22911e8
commit
4a4a8c9d26
3 changed files with 20 additions and 4 deletions
13
gnu/packages/patches/csvkit-set-locale-for-tests.patch
Normal file
13
gnu/packages/patches/csvkit-set-locale-for-tests.patch
Normal file
|
@ -0,0 +1,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')
|
Loading…
Add table
Add a link
Reference in a new issue