From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- testing/mochitest/leaks.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'testing/mochitest/leaks.py') diff --git a/testing/mochitest/leaks.py b/testing/mochitest/leaks.py index 76b6610963..08ed649a0c 100644 --- a/testing/mochitest/leaks.py +++ b/testing/mochitest/leaks.py @@ -8,8 +8,8 @@ import re from operator import itemgetter -RE_DOCSHELL = re.compile("I\/DocShellAndDOMWindowLeak ([+\-]{2})DOCSHELL") -RE_DOMWINDOW = re.compile("I\/DocShellAndDOMWindowLeak ([+\-]{2})DOMWINDOW") +RE_DOCSHELL = re.compile(r"I\/DocShellAndDOMWindowLeak ([+\-]{2})DOCSHELL") +RE_DOMWINDOW = re.compile(r"I\/DocShellAndDOMWindowLeak ([+\-]{2})DOMWINDOW") class ShutdownLeaks(object): @@ -233,7 +233,7 @@ class ShutdownLeaks(object): self.hiddenDocShellsCount += 1 def _parseValue(self, line, name): - match = re.search("\[%s = (.+?)\]" % name, line) + match = re.search(r"\[%s = (.+?)\]" % name, line) if match: return match.group(1) return None @@ -329,17 +329,17 @@ class LSANLeaks(object): ) self.startRegExp = re.compile( - "==\d+==ERROR: LeakSanitizer: detected memory leaks" + r"==\d+==ERROR: LeakSanitizer: detected memory leaks" ) self.fatalErrorRegExp = re.compile( - "==\d+==LeakSanitizer has encountered a fatal error." + r"==\d+==LeakSanitizer has encountered a fatal error." ) self.symbolizerOomRegExp = re.compile( "LLVMSymbolizer: error reading file: Cannot allocate memory" ) - self.stackFrameRegExp = re.compile(" #\d+ 0x[0-9a-f]+ in ([^(