1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 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()
|