]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: toastergui tests Use new BeautifulSoup syntax
authorMichael Wood <michael.g.wood@intel.com>
Fri, 10 Jun 2016 10:45:48 +0000 (11:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jun 2016 10:08:58 +0000 (11:08 +0100)
Fix deprecation warning specify the parser used for creating the
BeautifulSoup object.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
lib/toaster/toastergui/tests.py

index 2cd2c7d1630a6477e2762b0009b846a06ac3ab52..da530a10e538605e8ad71f4a4eed77ba4b29b98e 100644 (file)
@@ -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"