Debian Codegraph @

debian/patches/skip-test-on-32-bit.patch

raw symbols SCIP
1 Description: Attempt skipping failing test on 32-bit
2 Author: Nilesh Patra <[email protected]>
3 Bug: https://github.com/pysam-developers/pysam/issues/1367
4 Reviewed-By: Étienne Mollier <[email protected]>
5 Last-Update: 2025-11-14
6 ---
7 --- python-pysam.orig/tests/samtools_test.py
8 +++ python-pysam/tests/samtools_test.py
9 @@ -20,6 +20,7 @@
10 check_samtools_view_equal, get_temp_filename, force_bytes, WORKDIR, \
11 make_data_files, BAM_DATADIR
12
13 +import platform
14
15 def setUpModule():
16 make_data_files(BAM_DATADIR)
17 @@ -86,7 +87,7 @@
18 # TODO: fixmate behaviour changed in 1.21
19 #"fixmate ex1.bam %(out)s_ex1.fixmate.bam",
20 "flagstat ex1.bam > %(out)s_ex1.flagstat",
21 - "calmd ex1.bam ex1.fa > %(out)s_ex1.calmd.bam",
22 + #"calmd ex1.bam ex1.fa > %(out)s_ex1.calmd.bam",
23 # use -s option, otherwise the following error in samtools 1.2:
24 # Samtools-htslib-API: bam_get_library() not yet implemented
25 # causes downstream problems
26 @@ -112,6 +113,9 @@
27 # ("addreplacerg -r 'RG\tID:ga\tSM:hs' ex1.bam > %(out)s_ex1.addreplacerg",
28 ]
29
30 + if platform.architecture()[0] == '64bit':
31 + statements.append("calmd ex1.bam ex1.fa > %(out)s_ex1.calmd.bam")
32 +
33 map_command = {
34 }
35
36 --- python-pysam.orig/tests/compile_test.py
37 +++ python-pysam/tests/compile_test.py
38 @@ -8,6 +8,7 @@
39
40 # clean up previous compilation
41 import os
42 +import platform
43 import pytest
44 import pysam
45 from TestUtils import make_data_files, BAM_DATADIR, CBCF_DATADIR, TABIX_DATADIR
46 @@ -53,6 +54,10 @@
47 assert nread == 237
48
49
50 [email protected](
51 + platform.architecture()[0] != '64bit',
52 + reason="64-bit specific tests"
53 +)
54 class TestBinaryCompatibility:
55 def test_alignments(self):
56 fp = pysam.AlignmentFile(os.path.join(BAM_DATADIR, "ex1.bam"))