From f8faec77f1c05012ac8448449e9c734edb49f256 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 8 Dec 2019 22:36:56 +0100 Subject: [PATCH] Ignore return value of sendall; it's not None on py < 3.6. https://bugs.python.org/issue25951 --- irctest/cases.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/irctest/cases.py b/irctest/cases.py index 9091d41..7c161f3 100644 --- a/irctest/cases.py +++ b/irctest/cases.py @@ -156,11 +156,9 @@ class BaseClientTestCase(_IrcTestCase): if not filter_pred or filter_pred(msg): return msg def sendLine(self, line): - ret = self.conn.sendall(line.encode()) - assert ret is None + self.conn.sendall(line.encode()) if not line.endswith('\r\n'): - ret = self.conn.sendall(b'\r\n') - assert ret is None + self.conn.sendall(b'\r\n') if self.show_io: print('{:.3f} S: {}'.format(time.time(), line.strip()))