diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2018-11-20 18:12:21 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2018-11-21 10:30:05 +0100 |
| commit | fa1cfb40262b8a60e0f93b70491660f242638f81 (patch) | |
| tree | bd02b41ddccad19e4284b07df4b911d742fb2e2f /tests/qemu-iotests/iotests.py | |
| parent | d8336c6b286d9715bfe29a0e0b415dfd7891f671 (diff) | |
| download | focaccia-qemu-fa1cfb40262b8a60e0f93b70491660f242638f81.tar.gz focaccia-qemu-fa1cfb40262b8a60e0f93b70491660f242638f81.zip | |
iotests: Replace assertEquals() with assertEqual()
TestCase.assertEquals() is deprecated since Python 2.7. Recent Python versions print a warning when the function is called, which makes test cases fail. Replace it with the preferred spelling assertEqual(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/iotests.py')
| -rw-r--r-- | tests/qemu-iotests/iotests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 27bb2b600c..d537538ba0 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -581,7 +581,7 @@ class QMPTestCase(unittest.TestCase): def wait_ready_and_cancel(self, drive='drive0'): self.wait_ready(drive=drive) event = self.cancel_and_wait(drive=drive) - self.assertEquals(event['event'], 'BLOCK_JOB_COMPLETED') + self.assertEqual(event['event'], 'BLOCK_JOB_COMPLETED') self.assert_qmp(event, 'data/type', 'mirror') self.assert_qmp(event, 'data/offset', event['data']['len']) |