[med-svn] [Git][med-team/python-pyfaidx][master] Add patch for changing test locale to C

Sao I Kuan gitlab at salsa.debian.org
Wed Sep 30 11:55:07 BST 2020



Sao I Kuan pushed to branch master at Debian Med / python-pyfaidx


Commits:
14bc6cc6 by Sao I Kuan at 2020-09-30T19:54:17+09:00
Add patch for changing test locale to C

- - - - -


2 changed files:

- + debian/patches/series
- + debian/patches/test-locale-to-c.patch


Changes:

=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+test-locale-to-c.patch


=====================================
debian/patches/test-locale-to-c.patch
=====================================
@@ -0,0 +1,18 @@
+Description: Test locale to C
+ Change the testing locale "C", for avoiding the case in which the
+ additional locale set "en_US.utf8" is not available.
+Author: Sao I Kuan <saoikuan at gmail.com>
+Forwarded: not-needed
+Last-Update: 2020-09-30
+
+--- python-pyfaidx-0.5.9.1.orig/tests/test_feature_indexing.py
++++ python-pyfaidx-0.5.9.1/tests/test_feature_indexing.py
+@@ -322,7 +322,7 @@ class TestIndexing(TestCase):
+         import locale
+         old_locale = locale.getlocale(locale.LC_NUMERIC)
+         try:
+-            locale.setlocale(locale.LC_NUMERIC, 'en_US.utf8')
++            locale.setlocale(locale.LC_NUMERIC, 'C')
+             faidx = Faidx('data/genes.fasta')
+             faidx.write_fai()
+             faidx = Faidx('data/genes.fasta', build_index=False)



View it on GitLab: https://salsa.debian.org/med-team/python-pyfaidx/-/commit/14bc6cc6b4649bdca831fb13c411c3d2e1431f9d

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-pyfaidx/-/commit/14bc6cc6b4649bdca831fb13c411c3d2e1431f9d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200930/2b12d5ad/attachment.html>


More information about the debian-med-commit mailing list