Skip to content

Commit 545e744

Browse files
committed
remove unused get_loop
1 parent 886cd4d commit 545e744

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

tests/unit/io/test_asyncorereactor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class AsyncoreConnectionTest(AsyncorePatcher, ReactorTestMixin):
6161

6262
connection_class = AsyncoreConnection
6363
socket_attr_name = 'socket'
64-
loop_attr_name = '_loop'
6564

6665
# @classmethod
6766
# def setUpClass(cls):

tests/unit/io/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def test_timer_cancellation(self):
180180

181181
class ReactorTestMixin(object):
182182

183-
connection_class = loop_attr_name = socket_attr_name = None
183+
connection_class = socket_attr_name = None
184184
null_handle_function_args = ()
185185

186186
def get_socket(self, connection):
@@ -189,9 +189,6 @@ def get_socket(self, connection):
189189
def set_socket(self, connection, obj):
190190
return setattr(connection, self.socket_attr_name, obj)
191191

192-
def get_loop(self, connection):
193-
return getattr(connection, self.loop_attr_name)
194-
195192
def make_header_prefix(self, message_class, version=2, stream_id=0):
196193
return binary_type().join(map(uint8_pack, [
197194
0xff & (HEADER_DIRECTION_TO_CLIENT | version),

0 commit comments

Comments
 (0)