diff --git a/autoload/vim_python_test_runner.vim b/autoload/vim_python_test_runner.vim index 6e5f3c9..18a77d6 100644 --- a/autoload/vim_python_test_runner.vim +++ b/autoload/vim_python_test_runner.vim @@ -40,7 +40,7 @@ def run_desired_command_for_os(command_to_run): if "nose" in vim.eval("a:command_to_run") or "nose" in command_to_run: # Run nosetests for Python. vim.command("{0} 2>&1 | tee /tmp/test_results.txt".format(command_to_run)) - if "pytest" in vim.eval("a:command_to_run") or "pytest" in command_to_run: + elif "pytest" in vim.eval("a:command_to_run") or "pytest" in command_to_run: # Run pytests for Python. vim.command("{0} 2>&1 | tee /tmp/test_results.txt".format(command_to_run)) else: