--- /dev/null
+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
+@@ -1596,6 +1596,7 @@ class TestDoubleFetchCRAMWithReference(T
+ reference_filename = os.path.join(BAM_DATADIR, 'ex1.fa')
+
+
++@unittest.skip
+ class TestRemoteFileFTP(unittest.TestCase):
+
+ '''test remote access.
+--- a/tests/tabix_test.py
++++ b/tests/tabix_test.py
+@@ -1039,6 +1039,7 @@ for vcf_file in vcf_files:
+ globals()[n] = type(n, (TestVCFFromVariantFile,), dict(filename=vcf_file,))
+
+
++@unittest.skip
+ class TestRemoteFileHTTP(unittest.TestCase):
+
+ url = "http://genserv.anat.ox.ac.uk/downloads/pysam/test/example.gtf.gz"
+@@ -1078,25 +1079,28 @@ class TestRemoteFileHTTP(unittest.TestCa
+ self.assertEqual(list(self.local_file.header), [])
+
+
+-class TestRemoteFileHTTPWithHeader(TestRemoteFileHTTP):
+-
+- url = "http://genserv.anat.ox.ac.uk/downloads/pysam/test/example_comments.gtf.gz"
+- region = "chr1:1-1000"
+- 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):
+- self.remote_file = None
+- else:
+- self.remote_file = pysam.TabixFile(self.url, "r")
+- self.local_file = pysam.TabixFile(self.local, "r")
+-
+- def testHeader(self):
+- if self.remote_file is None:
+- return
+-
+- self.assertEqual(list(self.local_file.header), ["# comment at start"])
+- self.assertEqual(list(self.local_file.header), self.remote_file.header)
++#@unittest.skip # this leads to
++ # E TypeError: Error when calling the metaclass bases
++ # E function() argument 1 must be code, not str
++#class TestRemoteFileHTTPWithHeader(TestRemoteFileHTTP):
++#
++# url = "http://genserv.anat.ox.ac.uk/downloads/pysam/test/example_comments.gtf.gz"
++# region = "chr1:1-1000"
++# 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):
++# self.remote_file = None
++# else:
++# self.remote_file = pysam.TabixFile(self.url, "r")
++# self.local_file = pysam.TabixFile(self.local, "r")
++#
++# def testHeader(self):
++# if self.remote_file is None:
++# return
++#
++# self.assertEqual(list(self.local_file.header), ["# comment at start"])
++# self.assertEqual(list(self.local_file.header), self.remote_file.header)
+
+
+ class TestIndexArgument(unittest.TestCase):
+++ /dev/null
-Description: temporarily skip failing test
- See https://github.com/pysam-developers/pysam/issues/542
-Author: Afif Elghraoui <afif@debian.org>
-Forwarded: not-needed
-Last-Update: 2017-10-01
-Index: python-pysam/tests/AlignmentFile_test.py
-===================================================================
---- python-pysam.orig/tests/AlignmentFile_test.py
-+++ python-pysam/tests/AlignmentFile_test.py
-@@ -472,6 +472,7 @@ class TestIO(unittest.TestCase):
- "tmp_ex2.bam",
- "rb", "wb")
-
-+ @unittest.skip
- def testCRAM2CRAM(self):
- # in some systems different reference sequence paths might be
- # embedded in the CRAM files which will result in different headers