tests/avocado: avoid invalid escape in Python string
PATCH 1/1 tests/avocado: avoid invalid escape in Python string
This is an error in Python 3.12; fix it by using a raw string literal.
Signed-off-by Paolo Bonzini <[email protected]>
--- tests/avocado/virtio_check_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/avocado/virtio_check_params.py +1 -1
@@ -43,7 +43,7 @@ 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):
Signature · 1 line
2.41.0
Quoted 7 lines · Paolo Bonzini
This is an error in Python 3.12; fix it by using a raw string literal.
Signed-off-by Paolo Bonzini <[email protected]>--- tests/avocado/virtio_check_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>