skip_test_remote.patch: refresh.
authorÉtienne Mollier <emollier@debian.org>
Sat, 19 Nov 2022 10:33:37 +0000 (11:33 +0100)
committerÉtienne Mollier <emollier@debian.org>
Sat, 19 Nov 2022 10:33:37 +0000 (11:33 +0100)
debian/patches/skip_test_remote.patch

index 7148f8e1811575546c606b2eb8a367e79707bb73..4268e595d6c44e15915e71d18c02d36da1532e18 100644 (file)
@@ -2,9 +2,9 @@ Author: Andreas Tille <tille@debian.org>
 Last-Update: Tue, 11 Sep 2018 14:12:55 +0200
 Description: Skip tests trying to access remote site
 
---- a/tests/AlignmentFile_test.py
-+++ b/tests/AlignmentFile_test.py
-@@ -503,17 +503,6 @@
+--- python-pysam.orig/tests/AlignmentFile_test.py
++++ python-pysam/tests/AlignmentFile_test.py
+@@ -504,17 +504,6 @@
                         "tmp_ex2.sam",
                         "rb", "wh")
  
@@ -22,7 +22,7 @@ Description: Skip tests trying to access remote site
      def testCRAM2BAM(self):
          # ignore header (md5 sum)
          self.checkEcho("ex2.cram",
-@@ -1638,6 +1627,7 @@
+@@ -1640,6 +1629,7 @@
      reference_filename = os.path.join(BAM_DATADIR, 'ex1.fa')
  
  
@@ -30,8 +30,8 @@ Description: Skip tests trying to access remote site
  class TestRemoteFileFTP(unittest.TestCase):
  
      '''test remote access.
---- a/tests/tabix_test.py
-+++ b/tests/tabix_test.py
+--- python-pysam.orig/tests/tabix_test.py
++++ python-pysam/tests/tabix_test.py
 @@ -1017,6 +1017,7 @@
      globals()[n] = type(n, (TestVCFFromVariantFile,), dict(filename=vcf_file,))
  
@@ -51,7 +51,7 @@ Description: Skip tests trying to access remote site
 -    local = os.path.join(TABIX_DATADIR, "example_comments.gtf.gz")
 -
 -    def setUp(self):
--        if not pysam.config.HAVE_LIBCURL or not check_url(self.url):
+-        if not getattr(pysam.config, "HAVE_LIBCURL", 0) or not check_url(self.url):
 -            self.remote_file = None
 -        else:
 -            self.remote_file = pysam.TabixFile(self.url, "r")
@@ -73,7 +73,7 @@ Description: Skip tests trying to access remote site
 +#    local = os.path.join(TABIX_DATADIR, "example_comments.gtf.gz")
 +#
 +#    def setUp(self):
-+#        if not pysam.config.HAVE_LIBCURL or not check_url(self.url):
++#        if not getattr(pysam.config, "HAVE_LIBCURL", 0) or not check_url(self.url):
 +#            self.remote_file = None
 +#        else:
 +#            self.remote_file = pysam.TabixFile(self.url, "r")