mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 07:39:49 +02:00
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:
committed by
Richard Purdie
parent
a7b74c0b73
commit
baf345598d
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user