From a65885acddad52605043d771f50c78385b1df0b0 Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Thu, 4 May 2017 15:06:07 +0200 Subject: [PATCH] Exclude test tyring to access remote ftpserver --- debian/changelog | 2 ++ ...st_tyring_to_access_remote_ftpserver.patch | 29 +++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 32 insertions(+) create mode 100644 debian/patches/exclude_test_tyring_to_access_remote_ftpserver.patch diff --git a/debian/changelog b/debian/changelog index d817e4d..32dd603 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 index 0000000..33f4a22 --- /dev/null +++ b/debian/patches/exclude_test_tyring_to_access_remote_ftpserver.patch @@ -0,0 +1,29 @@ +Description: Exclude test tyring to access remote ftpserver +Bug-Debian: https://bugs.debian.org/861496 +Author: Andreas Tille +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() diff --git a/debian/patches/series b/debian/patches/series index af88631..8730a1c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ rpath.patch htslib-external-config.patch +exclude_test_tyring_to_access_remote_ftpserver.patch -- 2.30.2