1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Description: Fix syntax warning
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1085651
Forwarded: no
Last-Update: 2025-01-02
--- ironic-python-agent-9.14.0.orig/ironic_python_agent/tests/unit/extensions/test_image.py
+++ ironic-python-agent-9.14.0/ironic_python_agent/tests/unit/extensions/test_image.py
@@ -328,7 +328,7 @@ class TestImageExtension(base.IronicAgen
mock_get_part_path.return_value = self.fake_efi_system_part
mock_utils_efi_part.return_value = {'number': '1'}
mock_efi_bl.return_value = ['EFI/BOOT/BOOTX64.EFI']
- stdout_msg = """
+ stdout_msg = r"""
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,00001
@@ -390,7 +390,7 @@ Boot0002 VENDMAGIC FvFile(9f3c6294-bf9b-
# NOTE(TheJulia): This test string was derived from a lenovo SR650
# which does do some weird things with additional entries.
# most notably
- stdout_msg = """
+ stdout_msg = r"""
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0003,0002,0001
--- ironic-python-agent-9.14.0.orig/ironic_python_agent/tests/unit/test_efi_utils.py
+++ ironic-python-agent-9.14.0/ironic_python_agent/tests/unit/test_efi_utils.py
@@ -358,7 +358,7 @@ Boot0009* Internal CD/DVD ROM Drive (UEF
# string in advance. This string also includes a UTF16 character
# *on* purpose, to force proper decoding to be tested and garbage
# characters which can be found in OVMF test VM NVRAM records.
- dupe_entry = """
+ dupe_entry = r"""
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,00001
|