[med-svn] [Git][med-team/cyvcf2][master] 2 commits: Attempt fixing i386 FTBFS with skipping a test that ends up with NaN values

Nilesh Patra gitlab at salsa.debian.org
Tue Jan 26 18:10:29 GMT 2021



Nilesh Patra pushed to branch master at Debian Med / cyvcf2


Commits:
842efd6f by Nilesh Patra at 2021-01-26T23:36:36+05:30
Attempt fixing i386 FTBFS with skipping a test that ends up with NaN values

- - - - -
96df1e64 by Nilesh Patra at 2021-01-26T23:37:33+05:30
Update changelog

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/i386.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+cyvcf2 (0.30.4-3) unstable; urgency=medium
+
+  * Attempt fixing i386 FTBFS with skipping
+    a test that ends up with NaN values
+
+ -- Nilesh Patra <npatra974 at gmail.com>  Tue, 26 Jan 2021 23:36:46 +0530
+
 cyvcf2 (0.30.4-2) unstable; urgency=medium
 
   * Pull Upstream PR to fix ppc64el build


=====================================
debian/patches/i386.patch
=====================================
@@ -0,0 +1,23 @@
+Description: Skip test on i386 because the file ends up with a few NaN values due to exceeding ranges, hence skipping
+Author: Nilesh Patra <npatra974 at gmail.com>
+Last-Update: 2021-01-26
+--- a/cyvcf2/tests/test_reader.py
++++ b/cyvcf2/tests/test_reader.py
+@@ -12,6 +12,8 @@
+ except ImportError:
+   from pathlib2 import Path  # python 2 backport
+ 
++import platform
++import unittest
+ 
+ HERE = os.path.dirname(__file__)
+ VCF_PATH = os.path.join(HERE, "test.vcf.gz")
+@@ -1131,6 +1133,8 @@
+         vcf.seqlens
+     assert isinstance(ae.exception, AttributeError)
+ 
++ at unittest.skipIf((platform.uname().machine == 'i386' or platform.uname().machine == 'x86_64') and platform.architecture()[0] == '32bit', \
++        reason="The file ends up with a few NaN values on i386 due to exceeding ranges, hence skipping")
+ def test_set_unknown_format():
+     vcf = VCF(VCF_PATH)
+     vcf.add_format_to_header({'ID':'NEW', 'Type':'Float', 'Number':1, 'Description':'...'})


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 add_htslib_link_dependency.patch
 #spelling
 188.patch
+i386.patch



View it on GitLab: https://salsa.debian.org/med-team/cyvcf2/-/compare/461002ec20796a52081bd5a4e3aa717e4dbf0d8a...96df1e642ef950049cbdd1b826fac86cf2a4bfee

-- 
View it on GitLab: https://salsa.debian.org/med-team/cyvcf2/-/compare/461002ec20796a52081bd5a4e3aa717e4dbf0d8a...96df1e642ef950049cbdd1b826fac86cf2a4bfee
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/20210126/11a4607c/attachment-0001.html>


More information about the debian-med-commit mailing list