diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2019-12-05 23:50:48 +0530 |
---|---|---|
committer | vponomar <vponomar@redhat.com> | 2019-12-11 12:27:00 +0000 |
commit | 0cd073fdd42ed19186719862ed78006738d89f3e (patch) | |
tree | 079b8a740d4146c58cb59e83c5a66bc86168d606 /tests/functional/gluster_stability | |
parent | e3d38114d334fa99f574a37ee8b5af7f60291be7 (diff) |
[py2to3] Fix various py3 incompatibilities
Change-Id: I6c517278c3f8bf6f374ab60bc27768e503161278
Diffstat (limited to 'tests/functional/gluster_stability')
-rw-r--r-- | tests/functional/gluster_stability/test_gluster_block_stability.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional/gluster_stability/test_gluster_block_stability.py b/tests/functional/gluster_stability/test_gluster_block_stability.py index 8f31fd24..15393bf4 100644 --- a/tests/functional/gluster_stability/test_gluster_block_stability.py +++ b/tests/functional/gluster_stability/test_gluster_block_stability.py @@ -672,12 +672,12 @@ class TestGlusterBlockStability(GlusterBlockBaseClass): target_portal_list = sorted(set(target_portal_list)) unmatched_gips = (set(host_ips) ^ set(gluster_ips_bv_flattend)) unmatched_tpips = (set(host_ips) ^ set(target_portal_list)) - self.assertEqual( - cmp(host_ips, gluster_ips_bv_flattend), 0, + self.assertFalse( + unmatched_gips, "Could not match glusterips in blockvolumes, difference is %s " % unmatched_gips) - self.assertEqual( - cmp(host_ips, target_portal_list), 0, + self.assertFalse( + unmatched_tpips, "Could not match glusterips in pv describe, difference is %s " % unmatched_tpips) |