about summary refs log tree commit diff
path: root/pkgs/development/python-modules/async-modbus/fix-tests.patch
blob: 1c9dd605f5b8d6cd01e961b4daabc0bf35aa6abc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
diff --git a/tests/test_async_modbus.py b/tests/test_async_modbus.py
index b0bd3fd..6b8df87 100644
--- a/tests/test_async_modbus.py
+++ b/tests/test_async_modbus.py
@@ -194,7 +194,7 @@ async def test_read_coils(proto, slave_id, starting_address, expected_reply):
             await coro
     else:
         reply = await coro
-        assert (reply == expected_reply).all()
+        assert reply == expected_reply
 
     server = Server(slave_id, starting_address, expected_reply)
     client = AsyncClient(server, protocol)
@@ -204,7 +204,7 @@ async def test_read_coils(proto, slave_id, starting_address, expected_reply):
             await coro
     else:
         reply = await coro
-        assert (reply == expected_reply).all()
+        assert reply == expected_reply
 
 
 @pytest.mark.asyncio
@@ -273,7 +273,7 @@ async def test_read_discrete_inputs(proto, slave_id, starting_address, expected_
             await coro
     else:
         reply = await coro
-        assert (reply == expected_reply).all()
+        assert reply == expected_reply
 
     server = Server(slave_id, starting_address, expected_reply)
     client = AsyncClient(server, protocol)
@@ -283,7 +283,7 @@ async def test_read_discrete_inputs(proto, slave_id, starting_address, expected_
             await coro
     else:
         reply = await coro
-        assert (reply == expected_reply).all()
+        assert reply == expected_reply
 
 
 @pytest.mark.asyncio
@@ -306,7 +306,7 @@ async def test_read_holding_registers(
             await coro
     else:
         reply = await coro
-        assert (reply == expected_reply).all()
+        assert reply == expected_reply
 
     server = Server(slave_id, starting_address, expected_reply)
     client = AsyncClient(server, protocol)
@@ -316,7 +316,7 @@ async def test_read_holding_registers(
             await coro
     else:
         reply = await coro
-        assert (reply == expected_reply).all()
+        assert reply == expected_reply
 
 
 @pytest.mark.asyncio
@@ -383,7 +383,7 @@ async def test_read_input_registers(proto, slave_id, starting_address, expected_
             await coro
     else:
         reply = await coro
-        assert (reply == expected_reply).all()
+        assert reply == expected_reply
 
     server = Server(slave_id, starting_address, expected_reply)
     client = AsyncClient(server, protocol)
@@ -393,4 +393,4 @@ async def test_read_input_registers(proto, slave_id, starting_address, expected_
             await coro
     else:
         reply = await coro
-        assert (reply == expected_reply).all()
+        assert reply == expected_reply