summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bs4/testing.py
diff options
context:
space:
mode:
authorFrazer Clews <frazer.clews@codethink.co.uk>2020-05-04 14:26:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-05 13:22:29 +0100
commitb5763b2f480a9b994103debf02f1d11a92c27238 (patch)
tree0e2dd087f999f93e0c7f0ff2ac265a386f883250 /bitbake/lib/bs4/testing.py
parent6fd3f6f37947613f415c931e16d1f9ebe2f07f6c (diff)
downloadpoky-b5763b2f480a9b994103debf02f1d11a92c27238.tar.gz
bitbake: lib/bs4/testing.py: fix bs4 testing
Have classes actually inherit SoupTest so it can use it's original methods, also correctly import HTMLParserTreeBuilder (Bitbake rev: 5dbee3628972d521d44bdfb282ecc44fc956bdb1) Signed-off-by: Frazer Clews <frazer.clews@codethink.co.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bs4/testing.py')
-rw-r--r--bitbake/lib/bs4/testing.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bs4/testing.py b/bitbake/lib/bs4/testing.py
index 953bca8e91..6584ecf303 100644
--- a/bitbake/lib/bs4/testing.py
+++ b/bitbake/lib/bs4/testing.py
@@ -15,7 +15,7 @@ from bs4.element import (
15 SoupStrainer, 15 SoupStrainer,
16) 16)
17 17
18from bs4.builder import HTMLParserTreeBuilder 18from bs4.builder._htmlparser import HTMLParserTreeBuilder
19default_builder = HTMLParserTreeBuilder 19default_builder = HTMLParserTreeBuilder
20 20
21 21
@@ -56,7 +56,7 @@ class SoupTest(unittest.TestCase):
56 self.assertEqual(earlier, e.previous_element) 56 self.assertEqual(earlier, e.previous_element)
57 earlier = e 57 earlier = e
58 58
59class HTMLTreeBuilderSmokeTest(object): 59class HTMLTreeBuilderSmokeTest(SoupTest):
60 60
61 """A basic test of a treebuilder's competence. 61 """A basic test of a treebuilder's competence.
62 62
@@ -541,7 +541,7 @@ Hello, world!
541 data.a['foo'] = 'bar' 541 data.a['foo'] = 'bar'
542 self.assertEqual('<a foo="bar">text</a>', data.a.decode()) 542 self.assertEqual('<a foo="bar">text</a>', data.a.decode())
543 543
544class XMLTreeBuilderSmokeTest(object): 544class XMLTreeBuilderSmokeTest(SoupTest):
545 545
546 def test_pickle_and_unpickle_identity(self): 546 def test_pickle_and_unpickle_identity(self):
547 # Pickling a tree, then unpickling it, yields a tree identical 547 # Pickling a tree, then unpickling it, yields a tree identical