diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index f1799a7eff..b07bf00470 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -848,10 +848,11 @@ class FetchCheckStatusTest(FetcherTest): | |||
848 | def test_wget_checkstatus(self): | 848 | def test_wget_checkstatus(self): |
849 | fetch = bb.fetch2.Fetch(self.test_wget_uris, self.d) | 849 | fetch = bb.fetch2.Fetch(self.test_wget_uris, self.d) |
850 | for u in self.test_wget_uris: | 850 | for u in self.test_wget_uris: |
851 | ud = fetch.ud[u] | 851 | with self.subTest(url=u): |
852 | m = ud.method | 852 | ud = fetch.ud[u] |
853 | ret = m.checkstatus(fetch, ud, self.d) | 853 | m = ud.method |
854 | self.assertTrue(ret, msg="URI %s, can't check status" % (u)) | 854 | ret = m.checkstatus(fetch, ud, self.d) |
855 | self.assertTrue(ret, msg="URI %s, can't check status" % (u)) | ||
855 | 856 | ||
856 | @skipIfNoNetwork() | 857 | @skipIfNoNetwork() |
857 | def test_wget_checkstatus_connection_cache(self): | 858 | def test_wget_checkstatus_connection_cache(self): |
@@ -862,10 +863,11 @@ class FetchCheckStatusTest(FetcherTest): | |||
862 | connection_cache = connection_cache) | 863 | connection_cache = connection_cache) |
863 | 864 | ||
864 | for u in self.test_wget_uris: | 865 | for u in self.test_wget_uris: |
865 | ud = fetch.ud[u] | 866 | with self.subTest(url=u): |
866 | m = ud.method | 867 | ud = fetch.ud[u] |
867 | ret = m.checkstatus(fetch, ud, self.d) | 868 | m = ud.method |
868 | self.assertTrue(ret, msg="URI %s, can't check status" % (u)) | 869 | ret = m.checkstatus(fetch, ud, self.d) |
870 | self.assertTrue(ret, msg="URI %s, can't check status" % (u)) | ||
869 | 871 | ||
870 | connection_cache.close_connections() | 872 | connection_cache.close_connections() |
871 | 873 | ||