summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/annotation-model/tools/make_tests.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /testing/web-platform/tests/annotation-model/tools/make_tests.py
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/annotation-model/tools/make_tests.py')
-rw-r--r--testing/web-platform/tests/annotation-model/tools/make_tests.py6
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")