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
|
Description: Fix syntax warning
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1087046
Forwarded: https://review.opendev.org/c/openinfra/refstack-client/+/936226
Last-Update: 2024-11-26
Index: refstack-client/refstack_client/tests/unit/test_list_parser.py
===================================================================
--- refstack-client.orig/refstack_client/tests/unit/test_list_parser.py
+++ refstack-client/refstack_client/tests/unit/test_list_parser.py
@@ -178,9 +178,9 @@ class TestTestListParser(unittest.TestCa
"tempest.test.three[id-33333333-4444-5555-6666-777777777777](gate)"
]
- expected_list = "tempest.test.one\[\n"\
- "tempest.test.two\[\n"\
- "tempest.test.three\[\n" # noqa W605
+ expected_list = r'tempest.test.one\[' + "\n" \
+ r'tempest.test.two\[' + "\n" \
+ r'tempest.test.three\[' + "\n" # noqa W605
tmpfile = tempfile.mktemp()
with open(tmpfile, 'w') as f:
Index: refstack-client/refstack_client/list_parser.py
===================================================================
--- refstack-client.orig/refstack_client/list_parser.py
+++ refstack-client/refstack_client/list_parser.py
@@ -189,7 +189,7 @@ class TestListParser(object):
return list_file
def create_include_list(self, list_location):
- """This takes in a test list file, get normalized, and get list of
+ r"""This takes in a test list file, get normalized, and get list of
include regexes using full qualified test names (one per line).
Ex:
'tempest.test1[id-2,gate]' -> tempest.test1\[ # noqa: W605
|