From: Michael Wood Date: Fri, 10 Jun 2016 10:45:48 +0000 (+0100) Subject: toaster: toastergui tests Use new BeautifulSoup syntax X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d34546e88881e89588206877ebaea506cda4f6c2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: toastergui tests Use new BeautifulSoup syntax Fix deprecation warning specify the parser used for creating the BeautifulSoup object. Signed-off-by: Michael Wood --- diff --git a/lib/toaster/toastergui/tests.py b/lib/toaster/toastergui/tests.py index 2cd2c7d1630..da530a10e53 100644 --- a/lib/toaster/toastergui/tests.py +++ b/lib/toaster/toastergui/tests.py @@ -380,7 +380,7 @@ class ViewTests(TestCase): if "<" not in td: ret = td else: - ret = BeautifulSoup(td).text + ret = BeautifulSoup(td, "html.parser").text if len(ret): return "0"