diff --git a/tests/test_nginx_status.py b/tests/test_nginx_status.py
index b57dcdb6a2a70f196452a93bbf86b72dcdf94ace..882ead4173d2073bfd43a98d5ca2fa1dd9464264 100755
--- a/tests/test_nginx_status.py
+++ b/tests/test_nginx_status.py
@@ -13,7 +13,7 @@ if not os.path.exists('/etc/nginx'):
 else:
     print('Checking http://127.0.0.1:1080/nginx_status response.')
     try:
-        req = requests.get('http://127.0.0.1:1080/nginx_status', timeout=5)
+        req = requests.get('http://127.0.0.1:1080/nginx_status', proxies={'http': '', 'https': ''}, timeout=5)
         if req.status_code != 200:
             raise Exception('Request failed with status code %s.' % req.status_code)
         if 'Active connections' not in req.text:
diff --git a/tests/test_nginx_vhosts.py b/tests/test_nginx_vhosts.py
index a073846ace817dbf2461939fedba6d2a22946842..b4ae969a9ed1476ae06fec86c9b3a74e1790ddf8 100755
--- a/tests/test_nginx_vhosts.py
+++ b/tests/test_nginx_vhosts.py
@@ -37,7 +37,7 @@ else:
             url = '%s://%s' % ('https' if https else 'http', domain)
             sys.stdout.write('Testing url "%s": ' % url)
             try:
-                req = requests.get(url, verify=False, timeout=10)
+                req = requests.get(url, verify=False, proxies={'http': '', 'https': ''}, timeout=10)
             except Exception as e:
                 code = str(e)
             else: