File: python3-tests

package info (click to toggle)
python-screed 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 824 kB
  • sloc: python: 3,353; makefile: 164; sh: 22; javascript: 16
file content (45 lines) | stat: -rw-r--r-- 1,994 bytes parent folder | download
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
34
35
36
37
38
39
40
41
42
43
44
45
From: "Michael R. Crusoe" <crusoe@debian.org>
Date: Tue, 3 Mar 2026 08:04:11 +0100
Subject: use python3 for the tests

Forwarded: not-needed
---
 screed/tests/test_open.py  | 2 +-
 screed/tests/test_shell.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/screed/tests/test_open.py b/screed/tests/test_open.py
index 3d880ce..b830509 100644
--- a/screed/tests/test_open.py
+++ b/screed/tests/test_open.py
@@ -33,7 +33,7 @@ def test_open_stdin():
 
     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,
diff --git a/screed/tests/test_shell.py b/screed/tests/test_shell.py
index 7ab3ff2..7909001 100644
--- a/screed/tests/test_shell.py
+++ b/screed/tests/test_shell.py
@@ -65,7 +65,7 @@ class Test_fa_shell_module(test_fasta.Test_fasta):
         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 @@ class Test_fq_shell_module(test_fastq.Test_fastq):
         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)