diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2024-02-03 15:46:26 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-02-03 18:41:03 +0100 |
commit | a0485e07b38b3b1195a92ba86a173742f2bb867a (patch) | |
tree | 75c98955b9e99d91f2a6dce256a9f6488357a62e /src/ukify | |
parent | po: Translated using Weblate (Swedish) (diff) | |
download | systemd-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-x | src/ukify/test/test_ukify.py | 2 |
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)) |