tests/backup: minor fix for python3

This commit is contained in:
Marek Marczykowski-Górecki 2016-09-25 23:00:46 +02:00
parent 6d5959b31d
commit e1d9de1cc2
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -86,7 +86,7 @@ class BackupTestsMixin(qubes.tests.SystemTestsMixin):
size = f.tell()
f.seek(0)
for block_num in xrange(size/block_size):
for block_num in range(size/block_size):
f.write('a' * block_size)
if sparse:
f.seek(block_size, 1)
@ -183,7 +183,7 @@ class BackupTestsMixin(qubes.tests.SystemTestsMixin):
restore_op = qubes.backup.BackupRestore(
self.app, backupfile, appvm, "qubes")
if options:
for key, value in options.iteritems():
for key, value in options.items():
setattr(restore_op.options, key, value)
restore_info = restore_op.get_restore_info()
self.log.debug(restore_op.get_restore_summary(restore_info))