Skip to content

Commit

Permalink
refactor bad python
Browse files Browse the repository at this point in the history
Signed-off-by: William Henderson <[email protected]>
  • Loading branch information
w-henderson committed Sep 7, 2023
1 parent b19a9b1 commit 543c399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/py/test_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def test_handle_mig_data_read_short_write():
payload = bytes(mig_data_payload(data))

# don't send the last byte
msg(ctx, sock, VFIO_USER_MIG_DATA_READ, payload[0:len(payload) - 1],
msg(ctx, sock, VFIO_USER_MIG_DATA_READ, payload[:-1],
expect=errno.EINVAL)


Expand Down Expand Up @@ -474,7 +474,7 @@ def test_device_feature_short_write():
payload = bytes(payload)

# don't send the last byte
msg(ctx, sock, VFIO_USER_DEVICE_FEATURE, payload[0:len(payload) - 1],
msg(ctx, sock, VFIO_USER_DEVICE_FEATURE, payload[:-1],
expect=errno.EINVAL)


Expand Down

0 comments on commit 543c399

Please sign in to comment.