diff options
author | stark, steven <steven.stark@att.com> | 2018-11-06 15:47:07 -0800 |
---|---|---|
committer | stark, steven <steven.stark@att.com> | 2018-11-06 15:47:07 -0800 |
commit | ca9085f0f77d442d3741a8c754e65cc45b6a318d (patch) | |
tree | b011225495e89ef213487dc2784e2cb8ab36bf8e | |
parent | 72eef9521cc96587d148c84a00e72b4a30cc3efa (diff) |
[VVP] validation scripts warning function
Change-Id: Ib639b5eb271e48ded9d5c8bb8857b5e12260deed
Issue-ID: VVP-116
Signed-off-by: stark, steven <steven.stark@att.com>
-rw-r--r-- | ice_validator/tests/conftest.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |