signalbackup-tools: 20241220 -> 20250106 (#371523)
[NixPkgs.git] / pkgs / development / python-modules / async-modbus / fix-tests.patch
blob1c9dd605f5b8d6cd01e961b4daabc0bf35aa6abc
1 diff --git a/tests/test_async_modbus.py b/tests/test_async_modbus.py
2 index b0bd3fd..6b8df87 100644
3 --- a/tests/test_async_modbus.py
4 +++ b/tests/test_async_modbus.py
5 @@ -194,7 +194,7 @@ async def test_read_coils(proto, slave_id, starting_address, expected_reply):
6 await coro
7 else:
8 reply = await coro
9 - assert (reply == expected_reply).all()
10 + assert reply == expected_reply
12 server = Server(slave_id, starting_address, expected_reply)
13 client = AsyncClient(server, protocol)
14 @@ -204,7 +204,7 @@ async def test_read_coils(proto, slave_id, starting_address, expected_reply):
15 await coro
16 else:
17 reply = await coro
18 - assert (reply == expected_reply).all()
19 + assert reply == expected_reply
22 @pytest.mark.asyncio
23 @@ -273,7 +273,7 @@ async def test_read_discrete_inputs(proto, slave_id, starting_address, expected_
24 await coro
25 else:
26 reply = await coro
27 - assert (reply == expected_reply).all()
28 + assert reply == expected_reply
30 server = Server(slave_id, starting_address, expected_reply)
31 client = AsyncClient(server, protocol)
32 @@ -283,7 +283,7 @@ async def test_read_discrete_inputs(proto, slave_id, starting_address, expected_
33 await coro
34 else:
35 reply = await coro
36 - assert (reply == expected_reply).all()
37 + assert reply == expected_reply
40 @pytest.mark.asyncio
41 @@ -306,7 +306,7 @@ async def test_read_holding_registers(
42 await coro
43 else:
44 reply = await coro
45 - assert (reply == expected_reply).all()
46 + assert reply == expected_reply
48 server = Server(slave_id, starting_address, expected_reply)
49 client = AsyncClient(server, protocol)
50 @@ -316,7 +316,7 @@ async def test_read_holding_registers(
51 await coro
52 else:
53 reply = await coro
54 - assert (reply == expected_reply).all()
55 + assert reply == expected_reply
58 @pytest.mark.asyncio
59 @@ -383,7 +383,7 @@ async def test_read_input_registers(proto, slave_id, starting_address, expected_
60 await coro
61 else:
62 reply = await coro
63 - assert (reply == expected_reply).all()
64 + assert reply == expected_reply
66 server = Server(slave_id, starting_address, expected_reply)
67 client = AsyncClient(server, protocol)
68 @@ -393,4 +393,4 @@ async def test_read_input_registers(proto, slave_id, starting_address, expected_
69 await coro
70 else:
71 reply = await coro
72 - assert (reply == expected_reply).all()
73 + assert reply == expected_reply