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 30 31 32 33
|
Author: Michael R. Crusoe <michael.crusoe@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)
|