summaryrefslogtreecommitdiffstats
path: root/src/ukify
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2024-02-03 15:46:26 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-02-03 18:41:03 +0100
commita0485e07b38b3b1195a92ba86a173742f2bb867a (patch)
tree75c98955b9e99d91f2a6dce256a9f6488357a62e /src/ukify
parentpo: Translated using Weblate (Swedish) (diff)
downloadsystemd-a0485e07b38b3b1195a92ba86a173742f2bb867a.tar.xz
systemd-a0485e07b38b3b1195a92ba86a173742f2bb867a.zip
test_ukify: use raw string for the regex
To get rid of the "invalid escape sequence" warning: =============================== warnings summary =============================== ../src/ukify/test/test_ukify.py:876 ../src/ukify/test/test_ukify.py:876: SyntaxWarning: invalid escape sequence '\s' assert re.search('Issuer: CN\s?=\s?SecureBoot signing key on host', out)
Diffstat (limited to 'src/ukify')
-rwxr-xr-xsrc/ukify/test/test_ukify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ukify/test/test_ukify.py b/src/ukify/test/test_ukify.py
index 0a0a9024e9..f50e88d2f4 100755
--- a/src/ukify/test/test_ukify.py
+++ b/src/ukify/test/test_ukify.py
@@ -859,7 +859,7 @@ def test_key_cert_generation(tmp_path):
'-noout',
], text = True)
assert 'Certificate' in out
- assert re.search('Issuer: CN\s?=\s?SecureBoot signing key on host', out)
+ assert re.search(r'Issuer: CN\s?=\s?SecureBoot signing key on host', out)
if __name__ == '__main__':
sys.exit(pytest.main(sys.argv))