From db7b8cefa7343efde923f7d71e2c8315d0c6782e Mon Sep 17 00:00:00 2001 From: Caleb Salt Date: Wed, 1 Jan 2020 18:23:27 -0500 Subject: [PATCH] Update vim_python_test_runner.vim --- autoload/vim_python_test_runner.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: