1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: I386
Skip test on i386 because the file ends up with a few NaN values due to
exceeding ranges, hence skipping
Author: Nilesh Patra <npatra974@gmail.com>
Last-Update: 2021-01-26
--- a/cyvcf2/tests/test_reader.py
+++ b/cyvcf2/tests/test_reader.py
@@ -16,6 +16,8 @@ import pytest
from ..cyvcf2 import VCF, Variant, Writer
+import subprocess
+import unittest
HERE = os.path.dirname(__file__)
VCF_PATH = os.path.join(HERE, "test.vcf.gz")
@@ -1254,6 +1256,7 @@ def test_no_seqlen():
with pytest.raises(AttributeError):
vcf.seqlens
+@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':'...'})
|