Fix AppEngine connection pool tests
MODIFY
test/appengine/test_gae_manager.py
test/appengine/test_gae_manager.py
@@ -176,6 +176,10 @@ class TestGAERetry(test_connectionpool.TestRetry):
test_retry_redirect_history = None
test_multi_redirect_history = None
+ # GAE doesn't have the assert_same_host parameter in urlopen()
+ test_redirect_cross_host_forward_auth_headers = None
+ test_redirect_cross_host_no_forward_auth_headers = None
+
@pytest.mark.usefixtures('testbed')
class TestGAERetryAfter(test_connectionpool.TestRetryAfter):

MODIFY
test/with_dummyserver/test_connectionpool.py
test/with_dummyserver/test_connectionpool.py
@@ -12,8 +12,7 @@ import mock
from .. import (
TARPIT_HOST,
VALID_SOURCE_ADDRESSES,
- INVALID_SOURCE_ADDRESSES,
- requires_network
+ INVALID_SOURCE_ADDRESSES
)
from ..port_helpers import find_unused_port
from urllib3 import (
@@ -884,7 +883,11 @@ class TestRetry(HTTPDummyServerTestCase):
headers = {'Authentication': 'foo'}
retry = Retry(redirect=2, forward_auth_headers_across_hosts=True)
- resp = self.pool.urlopen('GET', url, headers=headers, assert_same_host=False, retries=retry)
+ resp = self.pool.urlopen(
+ 'GET', url, headers=headers,
+ assert_same_host=False,
+ retries=retry
+ )
self.assertEqual(resp.status, 200)

Fix AppEngine connection pool tests