diff options
author | Max Reitz | 2018-10-22 15:53:02 +0200 |
---|---|---|
committer | Eduardo Habkost | 2018-10-31 01:11:52 +0100 |
commit | 9a3a9a636eaf207816891f504b569b8d674987aa (patch) | |
tree | d36aa86b2797ee390d8b2b3aaedef2806ec9b729 /tests/qemu-iotests/041 | |
parent | iotests: Use Python byte strings where appropriate (diff) | |
download | qemu-9a3a9a636eaf207816891f504b569b8d674987aa.tar.gz qemu-9a3a9a636eaf207816891f504b569b8d674987aa.tar.xz qemu-9a3a9a636eaf207816891f504b569b8d674987aa.zip |
iotests: Use // for Python integer division
In Python 3, / is always a floating-point division. We usually do not
want this, and as Python 2.7 understands // as well, change all integer
divisions to use that.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20181022135307.14398-5-mreitz@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/041')
-rwxr-xr-x | tests/qemu-iotests/041 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/041 b/tests/qemu-iotests/041 index 9336ab6ff5..3615011d98 100755 --- a/tests/qemu-iotests/041 +++ b/tests/qemu-iotests/041 @@ -404,7 +404,7 @@ new_state = "2" state = "2" event = "%s" new_state = "1" -''' % (event, errno, self.MIRROR_GRANULARITY / 512, event, event)) +''' % (event, errno, self.MIRROR_GRANULARITY // 512, event, event)) file.close() def setUp(self): @@ -569,7 +569,7 @@ new_state = "2" state = "2" event = "%s" new_state = "1" -''' % (event, errno, self.MIRROR_GRANULARITY / 512, event, event)) +''' % (event, errno, self.MIRROR_GRANULARITY // 512, event, event)) file.close() def setUp(self): |