Bug 1847196 - Fix regexp escapes in test_emitter.py. r=firefox-build-system-reviewers,ahochheiden

Differential Revision: https://phabricator.services.mozilla.com/D185422
This commit is contained in:
Mike Hommey 2023-08-09 20:17:50 +00:00
Родитель c67fb78742
Коммит 5aa77c98a8
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1501,7 +1501,7 @@ class TestEmitterBasic(unittest.TestCase):
with self.assertRaisesRegex(
SandboxValidationError,
"Test.cpp from SOURCES would have the same object name as"
" Test.c from SOURCES\.",
" Test.c from SOURCES\\.",
):
self.read_topsrcdir(reader)
@ -1509,7 +1509,7 @@ class TestEmitterBasic(unittest.TestCase):
with self.assertRaisesRegex(
SandboxValidationError,
"Test.cpp from SOURCES would have the same object name as"
" subdir/Test.cpp from SOURCES\.",
" subdir/Test.cpp from SOURCES\\.",
):
self.read_topsrcdir(reader)
@ -1517,7 +1517,7 @@ class TestEmitterBasic(unittest.TestCase):
with self.assertRaisesRegex(
SandboxValidationError,
"Test.cpp from UNIFIED_SOURCES would have the same object name as"
" Test.c from SOURCES in non-unified builds\.",
" Test.c from SOURCES in non-unified builds\\.",
):
self.read_topsrcdir(reader)
@ -1525,7 +1525,7 @@ class TestEmitterBasic(unittest.TestCase):
with self.assertRaisesRegex(
SandboxValidationError,
"Test.cpp from UNIFIED_SOURCES would have the same object name as"
" Test.c from UNIFIED_SOURCES in non-unified builds\.",
" Test.c from UNIFIED_SOURCES in non-unified builds\\.",
):
self.read_topsrcdir(reader)