[Bug 1974182] [NEW] Autopkgtest fails when HTTP proxy is used

Olivier Gayot 1974182 at bugs.launchpad.net
Thu May 19 12:20:21 UTC 2022


Public bug reported:

The following tests fail because either of the following environment variables is set:
* http_proxy
* https_proxy
* no_proxy

The requests package supports these variables and the tests override
their to test the behavior. However, the test suite does not expect
these variables to already be set.

FAILED tests/test_requests.py::TestRequests::test_errors[http://doesnotexist.google.com-ConnectionError]
FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_send_self_prepared_request
FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_send_session_prepared_request
FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_send_with_redirects
FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_get - ...
FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_request

** Affects: requests (Ubuntu)
     Importance: Undecided
     Assignee: Olivier Gayot (ogayot)
         Status: Confirmed

** Affects: requests (Debian)
     Importance: Unknown
         Status: Unknown

** Changed in: requests (Ubuntu)
     Assignee: (unassigned) => Olivier Gayot (ogayot)

** Bug watch added: Debian Bug tracker #1011276
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011276

** Also affects: requests (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011276
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to requests in Ubuntu.
https://bugs.launchpad.net/bugs/1974182

Title:
  Autopkgtest fails when HTTP proxy is used

Status in requests package in Ubuntu:
  Confirmed
Status in requests package in Debian:
  Unknown

Bug description:
  The following tests fail because either of the following environment variables is set:
  * http_proxy
  * https_proxy
  * no_proxy

  The requests package supports these variables and the tests override
  their to test the behavior. However, the test suite does not expect
  these variables to already be set.

  FAILED tests/test_requests.py::TestRequests::test_errors[http://doesnotexist.google.com-ConnectionError]
  FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_send_self_prepared_request
  FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_send_session_prepared_request
  FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_send_with_redirects
  FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_get - ...
  FAILED tests/test_requests.py::TestRequests::test_respect_proxy_env_on_request

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/requests/+bug/1974182/+subscriptions




More information about the foundations-bugs mailing list