skip-test-on-32-bit.patch: refresh.
authorÉtienne Mollier <emollier@debian.org>
Sun, 12 May 2024 12:35:15 +0000 (14:35 +0200)
committerÉtienne Mollier <emollier@debian.org>
Sun, 12 May 2024 12:35:15 +0000 (14:35 +0200)
debian/patches/skip-test-on-32-bit.patch

index 869696baeae3e4229cb6be1982db814e9fe5e8cd..ff374f8c6a96b5cd77a0a558b7daeeddb1f0c3f0 100644 (file)
@@ -3,26 +3,26 @@ Author: Nilesh Patra <nilesh@debian.org>
 Forwarded: not-needed
 Last-Update: 2021-10-15
 ---
---- a/tests/samtools_test.py
-+++ b/tests/samtools_test.py
+--- python-pysam.orig/tests/samtools_test.py
++++ python-pysam/tests/samtools_test.py
 @@ -20,6 +20,7 @@
      check_samtools_view_equal, get_temp_filename, force_bytes, WORKDIR, \
      make_data_files, BAM_DATADIR
  
 +import platform
  
- IS_PYTHON3 = sys.version_info[0] >= 3
-@@ -92,7 +93,7 @@
+ def setUpModule():
+     make_data_files(BAM_DATADIR)
+@@ -85,7 +86,7 @@
+         "idxstats ex1.bam > %(out)s_ex1.idxstats",
+         "fixmate ex1.bam %(out)s_ex1.fixmate.bam",
          "flagstat ex1.bam > %(out)s_ex1.flagstat",
-         # Fails python 3.3 on linux, passes on OsX and when
-         # run locally
 -        "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
-@@ -118,6 +119,9 @@
+@@ -111,6 +112,9 @@
          # ("addreplacerg -r 'RG\tID:ga\tSM:hs' ex1.bam > %(out)s_ex1.addreplacerg",
      ]