Author: Francesco Ballarin
Last-Update: 2024-01-13 17:02:28 +0000
Description: Make sure python3 interpreter will be called

diff --git a/tests/test_scooby.py b/tests/test_scooby.py
index 827d2f2..70d4f6a 100644
--- a/tests/test_scooby.py
+++ b/tests/test_scooby.py
@@ -200,7 +200,7 @@ def test_import_os_error():
 def test_import_time():
     # Relevant for packages which provide a CLI:
     # How long does it take to import?
-    cmd = ["time", "-f", "%U", "python", "-c", "import scooby"]
+    cmd = ["time", "-f", "%U", "python3", "-c", "import scooby"]
     # Run it twice, just in case.
     subprocess.run(cmd)
     subprocess.run(cmd)
@@ -244,12 +244,12 @@ def test_cli(script_runner):
     assert rep_comp(test) == rep_comp(ret.stdout)
 
     # version -- VIA scooby/__main__.py by calling the folder scooby.
-    ret = script_runner.run(['python', 'scooby', '--version'])
+    ret = script_runner.run(['python3', 'scooby', '--version'])
     assert ret.success
     assert "scooby v" in ret.stdout
 
     # version -- VIA scooby/__main__.py by calling the file.
-    ret = script_runner.run(['python', os.path.join('scooby', '__main__.py'), '--version'])
+    ret = script_runner.run(['python3', os.path.join('scooby', '__main__.py'), '--version'])
     assert ret.success
     assert "scooby v" in ret.stdout
 
