diff options
-rw-r--r-- | test/py/test_device_get_region_info.py | 8 | ||||
-rw-r--r-- | test/py/test_device_get_region_info_zero_size.py | 2 | ||||
-rw-r--r-- | test/py/test_dirty_pages.py | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/py/test_device_get_region_info.py b/test/py/test_device_get_region_info.py index 52a790c..62d6740 100644 --- a/test/py/test_device_get_region_info.py +++ b/test/py/test_device_get_region_info.py @@ -128,7 +128,7 @@ def test_device_get_region_info_larger_argsz(): result = msg(ctx, sock, VFIO_USER_DEVICE_GET_REGION_INFO, payload) - assert(len(result) == argsz) + assert len(result) == argsz info, _ = vfio_region_info.pop_from_buffer(result) @@ -202,7 +202,7 @@ def test_device_get_region_info_caps(): assert area2.offset == 0x4000 assert area2.size == 0x2000 - assert(len(fds) == 1) + assert len(fds) == 1 disconnect_client(ctx, sock) @@ -268,7 +268,7 @@ def test_device_get_pci_config_space_info_implicit_pci_init(): result = msg(ctx, sock, VFIO_USER_DEVICE_GET_REGION_INFO, payload) - assert(len(result) == argsz) + assert len(result) == argsz info, _ = vfio_region_info.pop_from_buffer(result) @@ -304,7 +304,7 @@ def test_device_get_pci_config_space_info_implicit_no_pci_init(): result = msg(ctx, sock, VFIO_USER_DEVICE_GET_REGION_INFO, payload) - assert(len(result) == argsz) + assert len(result) == argsz info, _ = vfio_region_info.pop_from_buffer(result) diff --git a/test/py/test_device_get_region_info_zero_size.py b/test/py/test_device_get_region_info_zero_size.py index 3defff1..42a6ae0 100644 --- a/test/py/test_device_get_region_info_zero_size.py +++ b/test/py/test_device_get_region_info_zero_size.py @@ -63,7 +63,7 @@ def test_device_get_region_info_zero_sized_region(): vfu_run_ctx(ctx) result = get_reply(sock) - assert(len(result) == argsz) + assert len(result) == argsz info, _ = vfio_region_info.pop_from_buffer(result) diff --git a/test/py/test_dirty_pages.py b/test/py/test_dirty_pages.py index 687a6ce..b3d4e34 100644 --- a/test/py/test_dirty_pages.py +++ b/test/py/test_dirty_pages.py @@ -309,7 +309,7 @@ def get_dirty_page_bitmap(): _, result = vfio_user_dirty_pages.pop_from_buffer(result) _, result = vfio_user_bitmap_range.pop_from_buffer(result) - assert(len(result) == 8) + assert len(result) == 8 return struct.unpack("Q", result)[0] |