From: Étienne Mollier Date: Sat, 19 Nov 2022 10:33:37 +0000 (+0100) Subject: skip_test_remote.patch: refresh. X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2ae98dcf1b6ee255b2eadebc7ff55e388746350;p=python-pysam.git skip_test_remote.patch: refresh. --- diff --git a/debian/patches/skip_test_remote.patch b/debian/patches/skip_test_remote.patch index 7148f8e..4268e59 100644 --- a/debian/patches/skip_test_remote.patch +++ b/debian/patches/skip_test_remote.patch @@ -2,9 +2,9 @@ Author: Andreas Tille 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")