aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/044
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2018-10-22 14:53:02 +0100
committerEduardo Habkost <ehabkost@redhat.com>2018-10-30 21:11:52 -0300
commit9a3a9a636eaf207816891f504b569b8d674987aa (patch)
treed36aa86b2797ee390d8b2b3aaedef2806ec9b729 /tests/qemu-iotests/044
parent8eb5e6746feaf9e021b69ea2521899f8dc889033 (diff)
downloadqemu-9a3a9a636eaf207816891f504b569b8d674987aa.zip
qemu-9a3a9a636eaf207816891f504b569b8d674987aa.tar.gz
qemu-9a3a9a636eaf207816891f504b569b8d674987aa.tar.bz2
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/044')
-rwxr-xr-xtests/qemu-iotests/0442
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/044 b/tests/qemu-iotests/044
index 69e736f..7ef5e46 100755
--- a/tests/qemu-iotests/044
+++ b/tests/qemu-iotests/044
@@ -86,7 +86,7 @@ class TestRefcountTableGrowth(iotests.QMPTestCase):
off = off + 1024 * 512
table = b''.join(struct.pack('>Q', (1 << 63) | off + 512 * j)
- for j in xrange(0, remaining / 512))
+ for j in xrange(0, remaining // 512))
fd.write(table)