From: Étienne Mollier Date: Fri, 14 Nov 2025 13:10:19 +0000 (+0100) Subject: skip-test-on-32-bit.patch: skip further tests. X-Git-Tag: archive/raspbian/0.24.1+ds-2+rpi1~1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9afc73267f20972bb957a9e9728e0cd498df17d5;p=python-pysam.git skip-test-on-32-bit.patch: skip further tests. --- diff --git a/debian/patches/skip-test-on-32-bit.patch b/debian/patches/skip-test-on-32-bit.patch index ed37588..a3a37da 100644 --- a/debian/patches/skip-test-on-32-bit.patch +++ b/debian/patches/skip-test-on-32-bit.patch @@ -1,7 +1,8 @@ Description: Attempt skipping failing test on 32-bit Author: Nilesh Patra -Forwarded: not-needed -Last-Update: 2021-10-15 +Bug: https://github.com/pysam-developers/pysam/issues/1367 +Reviewed-By: Étienne Mollier +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"))