File: exclude_test_tyring_to_access_remote_ftpserver.patch

package info (click to toggle)
python-pysam 0.10.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,196 kB
  • ctags: 10,087
  • sloc: ansic: 79,627; python: 8,569; sh: 282; makefile: 215; perl: 41
file content (29 lines) | stat: -rw-r--r-- 864 bytes parent folder | download
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()