summaryrefslogtreecommitdiff
path: root/test/test_response.py
diff options
context:
space:
mode:
authorSeth Michael Larson <sethmichaellarson@gmail.com>2019-06-05 08:43:06 -0500
committerSeth Michael Larson <sethmichaellarson@gmail.com>2019-06-05 08:43:06 -0500
commitcce19dcd3c29e93e490ef526dc87aad2255b9c99 (patch)
tree4707723b7f9625b48f94afc0184af7c1c4fc92c9 /test/test_response.py
parent02fd90adbb388de72e4fea0826f33dcd35298a6f (diff)
parent728d9244665ef5b03103cb74d7b409ebe4f23b43 (diff)
downloadurllib3-delete-makefile.tar.gz
Merge branch 'master' of ssh://github.com/urllib3/urllib3 into delete-makefiledelete-makefile
Diffstat (limited to 'test/test_response.py')
-rw-r--r--test/test_response.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_response.py b/test/test_response.py
index 18b3e373..23a63be1 100644
--- a/test/test_response.py
+++ b/test/test_response.py
@@ -440,7 +440,7 @@ class TestResponse(object):
def __init__(self, payload, payload_part_size):
self.payloads = [
- payload[i * payload_part_size : (i + 1) * payload_part_size] # noqa
+ payload[i * payload_part_size : (i + 1) * payload_part_size]
for i in range(NUMBER_OF_READS + 1)
]
@@ -633,7 +633,7 @@ class TestResponse(object):
data = compress.compress(b"foobar")
data += compress.flush()
for i in range(0, len(data), 2):
- yield data[i : i + 2] # noqa
+ yield data[i : i + 2]
fp = MockChunkedEncodingResponse(list(stream()))
r = httplib.HTTPResponse(MockSock)
@@ -801,7 +801,7 @@ class TestResponse(object):
data = compress.compress(b"foo\nbar")
data += compress.flush()
for i in range(0, len(data), 2):
- yield data[i : i + 2] # noqa
+ yield data[i : i + 2]
fp = MockChunkedEncodingResponse(list(stream()))
r = httplib.HTTPResponse(MockSock)
@@ -862,7 +862,7 @@ class MockChunkedEncodingResponse(object):
return b""
else:
chunk_part = self.cur_chunk[: i + 2]
- self.cur_chunk = self.cur_chunk[i + 2 :] # noqa
+ self.cur_chunk = self.cur_chunk[i + 2 :]
return chunk_part
elif amt <= -1:
chunk_part = self.cur_chunk