aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2018-11-06 15:47:07 -0800
committersteven stark <steven.stark@att.com>2018-11-06 23:59:15 +0000
commitc1784fdec1f6bb4ebc103044293ab8a4f77361ab (patch)
treeb011225495e89ef213487dc2784e2cb8ab36bf8e
parent72eef9521cc96587d148c84a00e72b4a30cc3efa (diff)
[VVP] validation scripts warning functioncasablanca
Change-Id: Ib639b5eb271e48ded9d5c8bb8857b5e12260deed Issue-ID: VVP-116 Signed-off-by: stark, steven <steven.stark@att.com>
-rw-r--r--ice_validator/tests/conftest.py2
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))