From 3ce64f6e60672f3047aa5e5bec9a711497d31630 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 3 Mar 2016 19:53:46 +0100 Subject: [PATCH] Disable Insecure warnings Disable urllib's warnings, there's no way to fix these in our builds right now. Change-Id: I6621d28a643b4c786b6a5615fac95c998daf3432 --- doc/config-reference/source/conf.py | 4 ++++ test-requirements.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/doc/config-reference/source/conf.py b/doc/config-reference/source/conf.py index 7d31659467..b90c73554b 100644 --- a/doc/config-reference/source/conf.py +++ b/doc/config-reference/source/conf.py @@ -27,6 +27,10 @@ sys.path.append(os.path.dirname(__file__)) import openstackdocstheme +# Avoid unactionable warnings +import requestsexceptions +requestsexceptions.squelch_warnings(requestsexceptions.InsecureRequestWarning) + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. diff --git a/test-requirements.txt b/test-requirements.txt index 7c668bb37b..228eb2ac00 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -12,3 +12,4 @@ openstack-doc-tools>=0.33 sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 openstackdocstheme>=1.2.3 doc8 # Apache-2.0 +requestsexceptions>=1.1.1 # Apache-2.0