aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ice_validator/tests')
-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))