summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests
diff options
context:
space:
mode:
authorPeter Hoyes <Peter.Hoyes@arm.com>2023-06-16 13:36:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-27 15:28:56 +0100
commitbaf345598d147fa798e4b1dd20992f8bed0a5c0e (patch)
tree6fbbf17b52bdf16e1ae84f394086d1c476cd4c80 /bitbake/lib/bb/tests
parenta7b74c0b7357535917c453d3426c83d57461b682 (diff)
downloadpoky-baf345598d147fa798e4b1dd20992f8bed0a5c0e.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/tests')
-rw-r--r--bitbake/lib/bb/tests/fetch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index ba7be048a8..871c174e82 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -2486,7 +2486,7 @@ class CrateTest(FetcherTest):
2486 uris = self.d.getVar('SRC_URI').split() 2486 uris = self.d.getVar('SRC_URI').split()
2487 2487
2488 fetcher = bb.fetch2.Fetch(uris, self.d) 2488 fetcher = bb.fetch2.Fetch(uris, self.d)
2489 with self.assertRaisesRegexp(bb.fetch2.FetchError, "Fetcher failure for URL"): 2489 with self.assertRaisesRegex(bb.fetch2.FetchError, "Fetcher failure for URL"):
2490 fetcher.download() 2490 fetcher.download()
2491 2491
2492class NPMTest(FetcherTest): 2492class NPMTest(FetcherTest):