]> dgit.raspbian.org Git - python-pysam.git/commitdiff
skip-test-on-32-bit.patch: skip further tests.
authorÉtienne Mollier <emollier@debian.org>
Fri, 14 Nov 2025 13:10:19 +0000 (14:10 +0100)
committerÉtienne Mollier <emollier@debian.org>
Fri, 14 Nov 2025 13:10:19 +0000 (14:10 +0100)
debian/patches/skip-test-on-32-bit.patch

index ed375886c63a1960b6db3e3cb6f5e2f1ecbd90a0..a3a37dae68bffa2f089920b96b6863cfd5bca569 100644 (file)
@@ -1,7 +1,8 @@
 Description: Attempt skipping failing test on 32-bit
 Author: Nilesh Patra <nilesh@debian.org>
-Forwarded: not-needed
-Last-Update: 2021-10-15
+Bug: https://github.com/pysam-developers/pysam/issues/1367
+Reviewed-By: Étienne Mollier <emollier@debian.org>
+Last-Update: 2025-11-14
 ---
 --- python-pysam.orig/tests/samtools_test.py
 +++ python-pysam/tests/samtools_test.py
@@ -32,3 +33,24 @@ Last-Update: 2021-10-15
      map_command = {
      }
  
+--- python-pysam.orig/tests/compile_test.py
++++ python-pysam/tests/compile_test.py
+@@ -8,6 +8,7 @@
+ 
+ # 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 @@
+     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"))