bitbake: bitbake: tests/fetch: Rename assertRaisesRegexp to assertRaisesRegex

TestCase.assertRaisesRegexp was renamed to assertRaisesRegex in Python
3.2, so rename to fix a warning during test execution.

(Bitbake rev: 9bc2ca3197bff7a5ef6e0ece6bfef0cda68b808e)

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Hoyes
2023-06-16 13:36:48 +01:00
committed by Richard Purdie
parent a7b74c0b73
commit baf345598d

View File

@@ -2486,7 +2486,7 @@ class CrateTest(FetcherTest):
uris = self.d.getVar('SRC_URI').split()
fetcher = bb.fetch2.Fetch(uris, self.d)
with self.assertRaisesRegexp(bb.fetch2.FetchError, "Fetcher failure for URL"):
with self.assertRaisesRegex(bb.fetch2.FetchError, "Fetcher failure for URL"):
fetcher.download()
class NPMTest(FetcherTest):