diff options
Diffstat (limited to 'tests/test_taskipy.py')
| -rw-r--r-- | tests/test_taskipy.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_taskipy.py b/tests/test_taskipy.py index e4c3827..58efb5a 100644 --- a/tests/test_taskipy.py +++ b/tests/test_taskipy.py @@ -44,9 +44,8 @@ class TaskipyTestCase(unittest.TestCase): args: Optional[List[str]] = None, cwd=os.curdir, ) -> subprocess.Popen: - executable_path = path.abspath('task.bat' if platform.system() == 'Windows' else 'task') args = args or [] - return subprocess.Popen([executable_path, task] + args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd) + return subprocess.Popen(['task', task] + args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd) def create_test_dir_from_fixture(self, fixture_name: str): project_generator = GenerateProjectFromFixture(path.join('tests', 'fixtures', fixture_name)) @@ -331,9 +330,8 @@ class TaskRunFailTestCase(TaskipyTestCase): def test_exiting_with_code_127_and_printing_if_no_arg_is_passed(self): cwd = self.create_test_dir_from_fixture('project_with_pyproject_and_tasks') - executable_path = path.abspath('task') proc = subprocess.Popen( - executable_path, + 'task', stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, |