Exclude test tyring to access remote ftpserver
authorAndreas Tille <tille@debian.org>
Thu, 4 May 2017 13:06:07 +0000 (15:06 +0200)
committerAndreas Tille <tille@debian.org>
Thu, 4 May 2017 13:06:07 +0000 (15:06 +0200)
debian/changelog
debian/patches/exclude_test_tyring_to_access_remote_ftpserver.patch [new file with mode: 0644]
debian/patches/series

index d817e4d5481905e01109c5a3ee41c1361d5de6f2..32dd603384d9de116a071a9752d5de34d90fbc23 100644 (file)
@@ -3,6 +3,8 @@ python-pysam (0.10.0+ds-2) UNRELEASED; urgency=medium
   * d/rules:
      - Add some files that need to be removed after running tests
      - Remove other autogenerated files to build twice in a row
+  * Exclude test tyring to access remote ftpserver
+    Closes: #861496
 
  -- Andreas Tille <tille@debian.org>  Thu, 04 May 2017 12:50:22 +0200
 
diff --git a/debian/patches/exclude_test_tyring_to_access_remote_ftpserver.patch b/debian/patches/exclude_test_tyring_to_access_remote_ftpserver.patch
new file mode 100644 (file)
index 0000000..33f4a22
--- /dev/null
@@ -0,0 +1,29 @@
+Description: Exclude test tyring to access remote ftpserver
+Bug-Debian: https://bugs.debian.org/861496
+Author: Andreas Tille <tille@debian.org>
+Last-Update: Thu, 04 May 2017 12:50:22 +0200
+
+--- a/tests/faidx_test.py
++++ b/tests/faidx_test.py
+@@ -216,21 +216,5 @@ class TestFastxFileWithEmptySequence(uni
+         self.assertEqual(ref_num, l)
+-class TestRemoteFileFTP(unittest.TestCase):
+-    '''test remote access.
+-    '''
+-
+-    url = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/technical/reference/GRCh38_reference_genome/GRCh38_full_analysis_set_plus_decoy_hla.fa"
+-
+-
+-    def testFTPView(self):
+-        if not checkURL(self.url):
+-            return
+-        with pysam.Fastafile(self.url) as f:
+-            self.assertEqual(
+-                len(f.fetch("chr1", 0, 1000)),
+-                1000)
+-
+-
+ if __name__ == "__main__":
+     unittest.main()
index af88631bc1c353ed3a4d1b207a2dd00e11f4cb61..8730a1cf304d41e1e80ce24e8b186b3985114540 100644 (file)
@@ -1,2 +1,3 @@
 rpath.patch
 htslib-external-config.patch
+exclude_test_tyring_to_access_remote_ftpserver.patch