Skip to content

Commit

Permalink
#23 Fix test failure for Python2.7 and PyPy.
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeTux committed Dec 22, 2015
1 parent e6a13f1 commit 42cdd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def validate_mbap_fields(mbap, slave_id, pdu):
transaction_id = struct.unpack('>H', mbap[:2])[0]
protocol_id = struct.unpack('>H', mbap[2:4])[0]
length = struct.unpack('>H', mbap[4:6])[0]
unit_id = mbap[6]
unit_id = struct.unpack('>B', mbap[6:])[0]

assert len(mbap) == 7
assert 0 <= transaction_id <= 65536
Expand Down

0 comments on commit 42cdd19

Please sign in to comment.