From bfa3eebb7f048ded987856526c36e0d707f4534e Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sat, 12 Oct 2019 10:44:40 +0100 Subject: [PATCH] Remove redundant if clause --- cibuildwheel/macos.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index b4bf8157..c62eafc0 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -146,12 +146,12 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef # test the wheel if test_requires: call(['pip', 'install'] + test_requires, env=virtualenv_env) - if test_command: - # run the tests from $HOME, with an absolute path in the command - # (this ensures that Python runs the tests against the installed wheel - # and not the repo code) - test_command_prepared = prepare_command(test_command, project=abs_project_dir) - call(test_command_prepared, cwd=os.environ['HOME'], env=virtualenv_env, shell=True) + + # run the tests from $HOME, with an absolute path in the command + # (this ensures that Python runs the tests against the installed wheel + # and not the repo code) + test_command_prepared = prepare_command(test_command, project=abs_project_dir) + call(test_command_prepared, cwd=os.environ['HOME'], env=virtualenv_env, shell=True) # clean up shutil.rmtree(venv_dir)