diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
commit | da4c7e7ed675c3bf405668739c3012d140856109 (patch) | |
tree | cdd868dba063fecba609a1d819de271f0d51b23e /testing/mozbase/manifestparser/tests/test_manifestparser.py | |
parent | Adding upstream version 125.0.3. (diff) | |
download | firefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip |
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/mozbase/manifestparser/tests/test_manifestparser.py')
-rwxr-xr-x | testing/mozbase/manifestparser/tests/test_manifestparser.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/mozbase/manifestparser/tests/test_manifestparser.py b/testing/mozbase/manifestparser/tests/test_manifestparser.py index f1774cfffb..ddbc6ecc79 100755 --- a/testing/mozbase/manifestparser/tests/test_manifestparser.py +++ b/testing/mozbase/manifestparser/tests/test_manifestparser.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. import os +import re import shutil import tempfile import unittest @@ -620,6 +621,12 @@ yellow = submarine after = "edit-manifest-after.toml" after_path = os.path.join(here, after) after_str = open(after_path, "r", encoding="utf-8").read() + + # Define the regex pattern to match lines containing 'lineno' + pattern = re.compile(r"^.*lineno.*$\n?", re.MULTILINE) + # Remove lines containing 'lineno' + manifest_str = re.sub(pattern, "", manifest_str) + assert manifest_str == after_str |