Skip to content

Commit 6d03cc5

Browse files
committed
fix test: None vs. False
1 parent baf1c68 commit 6d03cc5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/python/test_selector_events.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,11 @@ def test_sock_sendall(self):
273273
f = self.loop.create_task(f)
274274
else:
275275
self.assertEqual(type(f).__name__, asyncio.Future.__name__)
276-
self.assertEqual((f, None, sock, b'data'), self.loop._sock_sendall.call_args[0])
276+
call_args = self.loop._sock_sendall.call_args[0]
277+
assert call_args[0] is f
278+
assert not call_args[1]
279+
assert call_args[2] is sock
280+
assert call_args[3] == b'data'
277281

278282
def test_sock_sendall_nodata(self):
279283
sock = test_utils.mock_nonblocking_socket()

0 commit comments

Comments
 (0)