Don't inheric from 'object' (after deprecating Python 2.x support)

This commit is contained in:
Roman Zeyde
2018-07-25 13:44:55 +03:00
parent 03e7fc48e9
commit eed168341c
13 changed files with 16 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ def test_socket():
assert not os.path.isfile(path)
class FakeSocket(object):
class FakeSocket:
def __init__(self, data=b''):
self.rx = io.BytesIO(data)
@@ -77,7 +77,7 @@ def test_server_thread():
connections = [sock]
quit_event = threading.Event()
class FakeServer(object):
class FakeServer:
def accept(self): # pylint: disable=no-self-use
if not connections:
raise socket.timeout()

View File

@@ -25,7 +25,7 @@ def test_frames():
assert util.read_frame(io.BytesIO(f)) == b''.join(msgs)
class FakeSocket(object):
class FakeSocket:
def __init__(self):
self.buf = io.BytesIO()