Skip to content

Commit

Permalink
ignoring chunked test for Google App Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
robermorales committed May 24, 2019
1 parent 5e68837 commit 9a484d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/with_dummyserver/test_connectionpool.py
Expand Up @@ -17,6 +17,7 @@
encode_multipart_formdata,
HTTPConnectionPool,
)
from urllib3.contrib.appengine import AppEngineManager
from urllib3.exceptions import (
ConnectTimeoutError,
EmptyPoolError,
Expand Down Expand Up @@ -775,9 +776,13 @@ def test_mixed_case_hostname(self):
self.assertEqual(response.status, 200)

def test_broken_pipe_ignore(self):
resp = self.pool.urlopen('POST', '/admin', chunked=False)
resp = self.pool.urlopen('POST', '/admin')
assert resp.status == 401

def test_broken_pipe_ignore_chunked(self):
if isinstance(self.pool, AppEngineManager):
self.skipTest("Google App Engine does not support chunked requests in URLFetch")

resp = self.pool.urlopen('POST', '/admin', chunked=True)
assert resp.status == 401

Expand Down

0 comments on commit 9a484d3

Please sign in to comment.