Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 8089d97

Browse files
committed
revert autopep8 blank lines
1 parent a974eec commit 8089d97

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/test_hyper.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def frame_buffer():
4848

4949

5050
class TestHyperConnection(object):
51-
5251
def test_connections_accept_hosts_and_ports(self):
5352
c = HTTP20Connection(host='www.google.com', port=8080)
5453
assert c.host == 'www.google.com'
@@ -500,7 +499,6 @@ def test_headers_with_continuation(self):
500499

501500
def test_send_tolerate_peer_gone(self):
502501
class ErrorSocket(DummySocket):
503-
504502
def sendall(self, data):
505503
raise socket.error(errno.EPIPE)
506504

@@ -703,7 +701,6 @@ def test_incrementing_window_after_close(self):
703701

704702

705703
class FrameEncoderMixin(object):
706-
707704
def setup_method(self, method):
708705
self.frames = []
709706
self.encoder = Encoder()
@@ -737,7 +734,6 @@ def add_data_frame(self, stream_id, data, end_stream=False):
737734

738735

739736
class TestServerPush(FrameEncoderMixin):
740-
741737
def request(self, enable_push=True):
742738
self.conn = HTTP20Connection('www.google.com', enable_push=enable_push)
743739
self.conn._sock = DummySocket()
@@ -963,7 +959,6 @@ def test_pushed_requests_ignore_unexpected_headers(self):
963959

964960

965961
class TestResponse(object):
966-
967962
def test_status_is_stripped_from_headers(self):
968963
headers = HTTPHeaderMap([(':status', '200')])
969964
resp = HTTP20Response(headers, None)
@@ -1114,7 +1109,6 @@ def test_response_version(self):
11141109

11151110

11161111
class TestHTTP20Adapter(object):
1117-
11181112
def test_adapter_reuses_connections(self):
11191113
a = HTTP20Adapter()
11201114
conn1 = a.get_connection('http2bin.org', 80, 'http')
@@ -1138,7 +1132,6 @@ def test_adapter_accept_client_certificate(self):
11381132

11391133

11401134
class TestUtilities(object):
1141-
11421135
def test_combining_repeated_headers(self):
11431136
test_headers = [
11441137
(b'key1', b'val1'),
@@ -1466,7 +1459,6 @@ def test_reset_pushed_streams_when_push_disabled(self):
14661459

14671460
# Some utility classes for the tests.
14681461
class NullEncoder(object):
1469-
14701462
@staticmethod
14711463
def encode(headers):
14721464

@@ -1483,7 +1475,6 @@ def to_str(v):
14831475

14841476

14851477
class FixedDecoder(object):
1486-
14871478
def __init__(self, result):
14881479
self.result = result
14891480

@@ -1492,7 +1483,6 @@ def decode(self, headers):
14921483

14931484

14941485
class DummySocket(object):
1495-
14961486
def __init__(self):
14971487
self.queue = []
14981488
self._buffer = BytesIO()
@@ -1530,7 +1520,6 @@ def fill(self):
15301520

15311521

15321522
class DummyStream(object):
1533-
15341523
def __init__(self, data, trailers=None):
15351524
self.data = data
15361525
self.data_frames = []

0 commit comments

Comments
 (0)