From: stark, steven Date: Tue, 6 Nov 2018 23:47:07 +0000 (-0800) Subject: [VVP] validation scripts warning function X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=commitdiff_plain;h=c1784fdec1f6bb4ebc103044293ab8a4f77361ab [VVP] validation scripts warning function Change-Id: Ib639b5eb271e48ded9d5c8bb8857b5e12260deed Issue-ID: VVP-116 Signed-off-by: stark, steven --- diff --git a/ice_validator/tests/conftest.py b/ice_validator/tests/conftest.py index 8650c69..54015d0 100644 --- a/ice_validator/tests/conftest.py +++ b/ice_validator/tests/conftest.py @@ -601,7 +601,7 @@ def load_current_requirements(): with open('requirements.json', 'wb') as needs: needs.write(r.content) else: - warnings.warning("Unexpected content-type ({}) encountered downloading requirements.json, using last saved copy".format(r.headers.get('content-type'))) + warnings.warn("Unexpected content-type ({}) encountered downloading requirements.json, using last saved copy".format(r.headers.get('content-type'))) except requests.exceptions.RequestException as e: warnings.warn("Error downloading latest JSON, using last saved copy.") warnings.warn(UserWarning(e))