aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/py/libvfio_user.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/py/libvfio_user.py b/test/py/libvfio_user.py
index 6d60798..f29b50e 100644
--- a/test/py/libvfio_user.py
+++ b/test/py/libvfio_user.py
@@ -315,7 +315,7 @@ class iovec_t(Structure):
]
def __eq__(self, other):
- if type(self) != type(other):
+ if type(self) is not type(other):
return False
return self.iov_base == other.iov_base \
and self.iov_len == other.iov_len
@@ -491,7 +491,7 @@ class vfu_dma_info_t(Structure):
]
def __eq__(self, other):
- if type(self) != type(other):
+ if type(self) is not type(other):
return False
return self.iova == other.iova \
and self.vaddr == other.vaddr \