diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /testing/web-platform/tests/annotation-model | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/annotation-model')
-rw-r--r-- | testing/web-platform/tests/annotation-model/tools/make_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/web-platform/tests/annotation-model/tools/make_tests.py b/testing/web-platform/tests/annotation-model/tools/make_tests.py index 6890baa296..007db68ea8 100644 --- a/testing/web-platform/tests/annotation-model/tools/make_tests.py +++ b/testing/web-platform/tests/annotation-model/tools/make_tests.py @@ -38,7 +38,7 @@ for curdir, subdirList, fileList in os.walk(DEFDIR, topdown=True): except ValueError as e: print("parse of " + theFile + " failed: " + e[0]) else: - theFile = re.sub("\.\./", "", theFile) + theFile = re.sub(r"\.\./", "", theFile) defList.append(theFile) if (len(defList)): @@ -75,7 +75,7 @@ for curdir, subdirList, fileList in os.walk(TESTTREE, topdown=True): templateFile = autoTemplate suffix = ".html" - rfile = re.sub("\.\./", "", file) + rfile = re.sub(r"\.\./", "", file) # interesting pattern is {{TESTFILE}} tcopy = re.sub("{{TESTFILE}}", rfile, templateFile) @@ -88,7 +88,7 @@ for curdir, subdirList, fileList in os.walk(TESTTREE, topdown=True): tcopy = re.sub("{{TESTTITLE}}", title, tcopy) # target file is basename of theFile + '-manual.html' - target = re.sub("\.test",suffix, theFile) + target = re.sub(r"\.test",suffix, theFile) try: out = open(target, "w") |