[med-svn] [python-pysam] 03/04: Exclude test tyring to access remote ftpserver

Andreas Tille tille at debian.org
Thu May 4 13:42:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository python-pysam.

commit a65885acddad52605043d771f50c78385b1df0b0
Author: Andreas Tille <tille at debian.org>
Date:   Thu May 4 15:06:07 2017 +0200

    Exclude test tyring to access remote ftpserver
---
 debian/changelog                                   |  2 ++
 ...de_test_tyring_to_access_remote_ftpserver.patch | 29 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 32 insertions(+)

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 <tille at 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
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 <tille at 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()
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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pysam.git



More information about the debian-med-commit mailing list