[med-svn] [python-screed] 01/01: use Python 3 for the tests

Michael Crusoe misterc-guest at moszumanska.debian.org
Sat Jun 24 15:03:52 UTC 2017


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

misterc-guest pushed a commit to tag debian/1.0-2
in repository python-screed.

commit c7292f6f98552cea5dc9f9ad3aedd9408ef3ba3e
Author: Michael R. Crusoe <michael.crusoe at gmail.com>
Date:   Sat Jun 24 07:57:23 2017 -0700

    use Python 3 for the tests
---
 debian/changelog             |  6 ++++++
 debian/patches/python3-tests | 33 +++++++++++++++++++++++++++++++++
 debian/patches/series        |  1 +
 3 files changed, 40 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0433ee9..107ab73 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-screed (1.0-2) unstable; urgency=medium
+
+  * Use python3 for the tests
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com>  Sat, 24 Jun 2017 08:02:32 -0700
+
 python-screed (1.0-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/patches/python3-tests b/debian/patches/python3-tests
new file mode 100644
index 0000000..33b107f
--- /dev/null
+++ b/debian/patches/python3-tests
@@ -0,0 +1,33 @@
+Author: Michael R. Crusoe <michael.crusoe at gmail.com>
+Description: use python3 for the tests
+--- python-screed.orig/screed/tests/test_open.py
++++ python-screed/screed/tests/test_open.py
+@@ -33,7 +33,7 @@
+ 
+     Uses a subprocess with the data file directlyused as stdin."""
+     filename1 = utils.get_test_data('test.fa')
+-    command = ["python", "-c", "from __future__ import print_function;"
++    command = ["python3", "-c", "from __future__ import print_function;"
+                "import screed; print(list(screed.open('-')))"]
+     with open(filename1, 'rb') as data_file:
+         output = subprocess.Popen(command,
+--- python-screed.orig/screed/tests/test_shell.py
++++ python-screed/screed/tests/test_shell.py
+@@ -65,7 +65,7 @@
+         self._testfa = utils.get_temp_filename('test.fa')
+         shutil.copy(utils.get_test_data('test.fa'), self._testfa)
+ 
+-        cmd = ['python', '-m', 'screed', 'db', self._testfa]
++        cmd = ['python3', '-m', 'screed', 'db', self._testfa]
+         ret = subprocess.check_call(cmd, stdout=subprocess.PIPE)
+         assert ret == 0, ret
+         self.db = screed.ScreedDB(self._testfa)
+@@ -87,7 +87,7 @@
+         self._testfq = utils.get_temp_filename('test.fastq')
+         shutil.copy(utils.get_test_data('test.fastq'), self._testfq)
+ 
+-        cmd = ['python', '-m', 'screed', 'db', self._testfq]
++        cmd = ['python3', '-m', 'screed', 'db', self._testfq]
+         ret = subprocess.check_call(cmd, stdout=subprocess.PIPE)
+         assert ret == 0, ret
+         self.db = screed.ScreedDB(self._testfq)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..42de3d5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+python3-tests

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



More information about the debian-med-commit mailing list