Description: Tests to Python3
Author: Antoni Villalonga i Noceras <antoni@friki.cat>
Last-Update: Wed, 18 Jun 2020 22:31:00 +0200

--- a/tests/test_dedup.py
+++ b/tests/test_dedup.py
@@ -22,7 +22,7 @@
 def setup_func():
     try:
         subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'dedup',
@@ -38,7 +38,7 @@
              ],
             )
         subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'dedup',
--- a/tests/test_filterbycov.py
+++ b/tests/test_filterbycov.py
@@ -40,7 +40,7 @@
     try:
         for p in params:
             subprocess.check_output(
-                ['python',
+                ['python3',
                  '-m',
                  'pairtools',
                  'filterbycov',
--- a/tests/test_flip.py
+++ b/tests/test_flip.py
@@ -12,7 +12,7 @@
 def test_flip():
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'flip',
--- a/tests/test_markasdup.py
+++ b/tests/test_markasdup.py
@@ -10,7 +10,7 @@
     mock_pairsam_path = os.path.join(testdir, 'data', 'mock.pairsam')
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'markasdup',
--- a/tests/test_merge.py
+++ b/tests/test_merge.py
@@ -17,7 +17,7 @@
 def setup_func():
     try:
         subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'sort',
@@ -28,7 +28,7 @@
             )
 
         subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'sort',
@@ -49,7 +49,7 @@
 def test_mock_pairsam():
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'merge',
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -172,7 +172,7 @@
     mock_chroms_path = os.path.join(testdir, 'data', 'mock.chrom.sizes')
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'parse',
--- a/tests/test_select.py
+++ b/tests/test_select.py
@@ -12,7 +12,7 @@
 def test_preserve():
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'select',
@@ -35,7 +35,7 @@
 def test_equal():
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'select',
@@ -62,7 +62,7 @@
 def test_csv():
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'select',
@@ -89,7 +89,7 @@
 def test_wildcard():
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'select',
@@ -116,7 +116,7 @@
 def test_regex():
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'select',
@@ -142,7 +142,7 @@
 def test_chrom_subset():
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'select',
--- a/tests/test_sort.py
+++ b/tests/test_sort.py
@@ -10,7 +10,7 @@
     mock_pairsam_path = os.path.join(testdir, 'data', 'mock.pairsam')
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'sort',
--- a/tests/test_split.py
+++ b/tests/test_split.py
@@ -16,7 +16,7 @@
 def setup_func():
     try:
         subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'split',
--- a/tests/test_stats.py
+++ b/tests/test_stats.py
@@ -10,7 +10,7 @@
     mock_pairsam_path = os.path.join(testdir, 'data', 'mock.pairsam')
     try:
         result = subprocess.check_output(
-            ['python',
+            ['python3',
              '-m',
              'pairtools',
              'stats',
