Commit 0ae0ac6e authored by Łukasz Nowak's avatar Łukasz Nowak

software/kvm: Make test compatible with py2 and 3

parent efc0ad41
......@@ -744,7 +744,7 @@ class TestCpuMemMaxDynamic(InstanceTestCase):
def test(self):
with open(os.path.join(
self.computer_partition_root_path, 'bin', 'kvm_raw'), 'rb') as fh:
self.computer_partition_root_path, 'bin', 'kvm_raw'), 'r') as fh:
kvm_raw = fh.read()
self.assertTrue('smp_count = 2' in kvm_raw)
self.assertTrue('smp_max_count = 3' in kvm_raw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment