diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-06 14:43:09 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-06 22:28:03 +0000 |
commit | c2484f3dec966b8698d921221185f35771ab58ef (patch) | |
tree | 705ca2ccb5ce46735838033aacfffa1cb6b10490 /bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py | |
parent | 029e82d418377468dfa167397a9e7271414ab506 (diff) | |
download | poky-c2484f3dec966b8698d921221185f35771ab58ef.tar.gz |
bitbake: toaster: Fix assertRegexpMatches deprecation warnings
Fix:
DeprecationWarning: Please use assertRegex instead.
(Bitbake rev: 81ee203fd55d45b199d7c3af681855d254e0d876)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py')
-rw-r--r-- | bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py b/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py index 34d1bd45c7..f4d95b1acd 100644 --- a/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py +++ b/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py | |||
@@ -136,7 +136,7 @@ class TestNewCustomImagePage(SeleniumTestCase): | |||
136 | """ | 136 | """ |
137 | self._create_custom_image(self.recipe.name) | 137 | self._create_custom_image(self.recipe.name) |
138 | element = self.wait_until_visible('#invalid-name-help') | 138 | element = self.wait_until_visible('#invalid-name-help') |
139 | self.assertRegexpMatches(element.text.strip(), | 139 | self.assertRegex(element.text.strip(), |
140 | 'image with this name already exists') | 140 | 'image with this name already exists') |
141 | 141 | ||
142 | def test_new_duplicates_project_image(self): | 142 | def test_new_duplicates_project_image(self): |
@@ -154,4 +154,4 @@ class TestNewCustomImagePage(SeleniumTestCase): | |||
154 | self._create_custom_image(custom_image_name) | 154 | self._create_custom_image(custom_image_name) |
155 | element = self.wait_until_visible('#invalid-name-help') | 155 | element = self.wait_until_visible('#invalid-name-help') |
156 | expected = 'An image with this name already exists in this project' | 156 | expected = 'An image with this name already exists in this project' |
157 | self.assertRegexpMatches(element.text.strip(), expected) | 157 | self.assertRegex(element.text.strip(), expected) |