diff options
author | John Levon <john.levon@nutanix.com> | 2022-02-18 12:24:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 12:24:07 +0000 |
commit | f968d297dd5ff00cd5593a5f0828fea5fef7670c (patch) | |
tree | 3d7cc48b4d985685fc2fe1c13bf9bd1707f64be1 /test/py/test_setup_region.py | |
parent | 403bb2aa6784d445fe18825307cc85ca79820a01 (diff) | |
download | libvfio-user-f968d297dd5ff00cd5593a5f0828fea5fef7670c.zip libvfio-user-f968d297dd5ff00cd5593a5f0828fea5fef7670c.tar.gz libvfio-user-f968d297dd5ff00cd5593a5f0828fea5fef7670c.tar.bz2 |
test/py: simplify errno handling (#645)
We explicitly identify the quiesce EBUSY case for msg(), letting us simplify the
handling of expected errno.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'test/py/test_setup_region.py')
-rw-r--r-- | test/py/test_setup_region.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/test_setup_region.py b/test/py/test_setup_region.py index b55f56f..d00de68 100644 --- a/test/py/test_setup_region.py +++ b/test/py/test_setup_region.py @@ -234,7 +234,7 @@ def test_region_offset_too_short(): payload = struct.pack("Q", 0) msg(ctx, sock, VFIO_USER_REGION_WRITE, payload, - expect_reply_errno=errno.EINVAL) + expect=errno.EINVAL) disconnect_client(ctx, sock) |