]> dgit.raspbian.org Git - python-pysam.git/commitdiff
Attempt skipping failing test on 32-bit
authorNilesh Patra <nilesh@debian.org>
Wed, 14 Jan 2026 09:18:36 +0000 (09:18 +0000)
committerRaspbian forward porter <root@raspbian.org>
Wed, 14 Jan 2026 09:18:36 +0000 (09:18 +0000)
Bug: https://github.com/pysam-developers/pysam/issues/1367
Reviewed-By: Étienne Mollier <emollier@debian.org>
Last-Update: 2025-11-14

Last-Update: 2025-11-14
Gbp-Pq: Name skip-test-on-32-bit.patch

tests/compile_test.py
tests/samtools_test.py

index 2de1b1e70aad5f2b0e8ab672e4ed1cb0c654b906..b256e18028b1a24532ff651f6de3c7899a99b0a7 100644 (file)
@@ -8,6 +8,7 @@ pysam and tabix works.
 
 # clean up previous compilation
 import os
+import platform
 import pytest
 import pysam
 from TestUtils import make_data_files, BAM_DATADIR, CBCF_DATADIR, TABIX_DATADIR
@@ -53,6 +54,10 @@ def test_gtf():
     assert nread == 237
 
 
+@pytest.mark.skipif(
+    platform.architecture()[0] != '64bit',
+    reason="64-bit specific tests"
+)
 class TestBinaryCompatibility:
     def test_alignments(self):
         fp = pysam.AlignmentFile(os.path.join(BAM_DATADIR, "ex1.bam"))
index fc31d8c0642e5aa2013faff76170b9a2463dc3db..3cf8f5b84a61a0e71bd28fd95b68ad0f7b399431 100644 (file)
@@ -20,6 +20,7 @@ from TestUtils import checkBinaryEqual, check_lines_equal, \
     check_samtools_view_equal, get_temp_filename, force_bytes, WORKDIR, \
     make_data_files, BAM_DATADIR
 
+import platform
 
 def setUpModule():
     make_data_files(BAM_DATADIR)
@@ -86,7 +87,7 @@ class SamtoolsTest(unittest.TestCase):
         # TODO: fixmate behaviour changed in 1.21
         #"fixmate ex1.bam %(out)s_ex1.fixmate.bam",
         "flagstat ex1.bam > %(out)s_ex1.flagstat",
-        "calmd ex1.bam ex1.fa > %(out)s_ex1.calmd.bam",
+        #"calmd ex1.bam ex1.fa > %(out)s_ex1.calmd.bam",
         # use -s option, otherwise the following error in samtools 1.2:
         # Samtools-htslib-API: bam_get_library() not yet implemented
         # causes downstream problems
@@ -112,6 +113,9 @@ class SamtoolsTest(unittest.TestCase):
         # ("addreplacerg -r 'RG\tID:ga\tSM:hs' ex1.bam > %(out)s_ex1.addreplacerg",
     ]
 
+    if platform.architecture()[0] == '64bit':
+        statements.append("calmd ex1.bam ex1.fa > %(out)s_ex1.calmd.bam")
+
     map_command = {
     }