mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
8eb5e6746f
commit
9a3a9a636e
11 changed files with 30 additions and 30 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue