aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-10-16 08:22:56 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-10-17 15:20:53 +0200
commit1b5f3f65cc71341a4f9fc9e89bb6985fde703758 (patch)
tree384f07445af0e7efdfdb1c66e0a06772a47ed4bf /tests
parente41c40d101fce79af4d679955eb6e0d31e02c47c (diff)
downloadqemu-1b5f3f65cc71341a4f9fc9e89bb6985fde703758.zip
qemu-1b5f3f65cc71341a4f9fc9e89bb6985fde703758.tar.gz
qemu-1b5f3f65cc71341a4f9fc9e89bb6985fde703758.tar.bz2
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/avocado/virtio_check_params.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/avocado/virtio_check_params.py b/tests/avocado/virtio_check_params.py
index f4314ef..5fe370a 100644
--- a/tests/avocado/virtio_check_params.py
+++ b/tests/avocado/virtio_check_params.py
@@ -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):