tests/avocado: avoid invalid escape in Python string
This is an error in Python 3.12; fix it by using a raw string literal. Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
e41c40d101
commit
1b5f3f65cc
@ -43,7 +43,7 @@ VM_DEV_PARAMS = {'virtio-scsi-pci': ['-device', 'virtio-scsi-pci,id=scsi0'],
|
||||
class VirtioMaxSegSettingsCheck(QemuSystemTest):
|
||||
@staticmethod
|
||||
def make_pattern(props):
|
||||
pattern_items = ['{0} = \w+'.format(prop) for prop in props]
|
||||
pattern_items = [r'{0} = \w+'.format(prop) for prop in props]
|
||||
return '|'.join(pattern_items)
|
||||
|
||||
def query_virtqueue(self, vm, dev_type_name):
|
||||
|
Loading…
Reference in New Issue
Block a user