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")
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')
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,))
- 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")
+# 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")