[med-svn] [Git][med-team/cyvcf2][master] Attempt again to disable failing test on i386
Nilesh Patra
gitlab at salsa.debian.org
Wed Feb 3 12:26:09 GMT 2021
Nilesh Patra pushed to branch master at Debian Med / cyvcf2
Commits:
691c07e4 by Nilesh Patra at 2021-02-03T17:55:51+05:30
Attempt again to disable failing test on i386
- - - - -
1 changed file:
- debian/patches/i386.patch
Changes:
=====================================
debian/patches/i386.patch
=====================================
@@ -1,23 +1,20 @@
-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 subprocess
+import unittest
HERE = os.path.dirname(__file__)
VCF_PATH = os.path.join(HERE, "test.vcf.gz")
-@@ -1131,6 +1133,8 @@
+@@ -1131,6 +1133,7 @@
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")
++ at unittest.skipIf('i386' in str(subprocess.check_output('dpkg-architecture -qDEB_BUILD_ARCH', shell=True)), 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':'...'})
+
View it on GitLab: https://salsa.debian.org/med-team/cyvcf2/-/commit/691c07e4c3ac2a0d8c86c8f8e2876584fe981a0c
--
View it on GitLab: https://salsa.debian.org/med-team/cyvcf2/-/commit/691c07e4c3ac2a0d8c86c8f8e2876584fe981a0c
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/20210203/2045a895/attachment.html>
More information about the debian-med-commit
mailing list