From e7b94103611808fb76e1b772a06a40c5d29432e3 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 15 Nov 2016 09:19:23 -0500 Subject: [PATCH] fix up python requirements test --- awx/main/tests/unit/test_python_requirements.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/unit/test_python_requirements.py b/awx/main/tests/unit/test_python_requirements.py index 6fffc88149..8b7382dd74 100644 --- a/awx/main/tests/unit/test_python_requirements.py +++ b/awx/main/tests/unit/test_python_requirements.py @@ -40,6 +40,7 @@ def test_env_matches_requirements_txt(): if res is False: not_found.append(r) - raise RuntimeError("%s not found in \n\n%s" % (not_found, reqs_actual)) + if len(not_found) > 0: + raise RuntimeError("%s not found in \n\n%s" % (not_found, reqs_actual))