[med-svn] [python-pysam] 09/13: Drop obsolete patches
Afif Elghraoui
afif at moszumanska.debian.org
Mon Jun 20 01:53:29 UTC 2016
This is an automated email from the git hooks/post-receive script.
afif pushed a commit to branch master
in repository python-pysam.
commit 9e083015995158ce58a533407e9a3b5a3449c036
Author: Afif Elghraoui <afif at debian.org>
Date: Sun Jun 19 18:06:57 2016 -0700
Drop obsolete patches
---
debian/TODO | 4 -
debian/patches/compile-test.patch | 15 ----
.../patches/disable-tests-requiring-network.patch | 89 ----------------------
debian/patches/series | 2 -
4 files changed, 110 deletions(-)
diff --git a/debian/TODO b/debian/TODO
deleted file mode 100644
index 83ce291..0000000
--- a/debian/TODO
+++ /dev/null
@@ -1,4 +0,0 @@
-* Fix tests requiring network access
- All tests should be passing now.
- The ones that fail are failing because of network access issues.
- Once this is fixed, the exit status of dh_auto_test should not be ignored.
diff --git a/debian/patches/compile-test.patch b/debian/patches/compile-test.patch
deleted file mode 100644
index d8f1ffc..0000000
--- a/debian/patches/compile-test.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Description: Fix compile-test
-Author: Afif Elghraoui <afif at debian.org>
-Forwarded: no
-Last-Update: 2016-03-09
---- python-pysam.orig/tests/compile_test.py
-+++ python-pysam/tests/compile_test.py
-@@ -15,7 +15,7 @@
-
-
- import pyximport
--pyximport.install(build_in_temp=False)
-+pyximport.install(build_in_temp=True)
- import _compile_test
-
- import unittest
diff --git a/debian/patches/disable-tests-requiring-network.patch b/debian/patches/disable-tests-requiring-network.patch
deleted file mode 100644
index bc7872d..0000000
--- a/debian/patches/disable-tests-requiring-network.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-Description: Disable tests requiring network access
-Author: Afif Elghraoui <afif at ghraoui.name>
-Forwarded: no
-Last-Update: 2015-11-13
---- python-pysam.orig/tests/tabix_test.py
-+++ python-pysam/tests/tabix_test.py
-@@ -1124,11 +1124,12 @@
- local = os.path.join(DATADIR, "example.gtf.gz")
-
- def setUp(self):
-- self.remote_file = pysam.TabixFile(self.url, "r")
-+ if checkURL(self.url):
-+ self.remote_file = pysam.TabixFile(self.url, "r")
- self.local_file = pysam.TabixFile(self.local, "r")
-
- def testFetchAll(self):
-- if not checkURL(self.url):
-+ if checkURL(self.url) == False:
- return
-
- remote_result = list(self.remote_file.fetch())
-@@ -1139,14 +1140,15 @@
- self.assertEqual(x, y)
-
- def testHeader(self):
-- self.assertEqual(list(self.local_file.header), [])
-- self.assertRaises(AttributeError,
-- getattr,
-- self.remote_file,
-- "header")
-+ if checkURL(self.url):
-+ self.assertEqual(list(self.local_file.header), [])
-+ self.assertRaises(AttributeError,
-+ getattr,
-+ self.remote_file,
-+ "header")
-
- def tearDown(self):
-- self.remote_file.close()
-+# self.remote_file.close()
- self.local_file.close()
-
-
---- python-pysam.orig/tests/AlignmentFile_test.py
-+++ python-pysam/tests/AlignmentFile_test.py
-@@ -2466,12 +2466,16 @@
- filepath_index=os.path.join(DATADIR, 'ex1.cram.crai'))
-
- def testRemoteExplicitIndexBAM(self):
-- samfile = pysam.AlignmentFile(
-- "http://genserv.anat.ox.ac.uk/downloads/pysam/test/noindex.bam",
-- "rb",
-- filepath_index=os.path.join(DATADIR, 'ex1.bam.bai'))
-+ url = "http://genserv.anat.ox.ac.uk/downloads/pysam/test/noindex.bam"
-+ if checkURL(url):
-+ samfile = pysam.AlignmentFile(
-+ url,
-+ "rb",
-+ filepath_index=os.path.join(DATADIR, 'ex1.bam.bai'))
-
-- samfile.fetch("chr1")
-+ samfile.fetch("chr1")
-+ else:
-+ pass
-
-
- class TestVerbosity(unittest.TestCase):
---- python-pysam.orig/tests/faidx_test.py
-+++ python-pysam/tests/faidx_test.py
-@@ -173,12 +173,13 @@
-
-
- def testFTPView(self):
-- if not checkURL(self.url):
-- return
-- f = pysam.Fastafile(self.url)
-- self.assertEqual(
-- len(f.fetch("chr1", 0, 1000)),
-- 1000)
-+ if checkURL(self.url):
-+ f = pysam.Fastafile(self.url)
-+ self.assertEqual(
-+ len(f.fetch("chr1", 0, 1000)),
-+ 1000)
-+ else:
-+ return True
-
-
- if __name__ == "__main__":
diff --git a/debian/patches/series b/debian/patches/series
index 917fbdc..2f83d47 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,2 @@
external-htslib.patch
-disable-tests-requiring-network.patch
rpath.patch
-compile-test.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