diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-06 09:06:51 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-16 23:32:40 +0100 |
commit | 8d49bef632a0486e0172e543a6c2622398ed7a8c (patch) | |
tree | e1df010f269ba33c3b53300bd16f030873b75363 /bitbake/lib/bs4/tests/test_htmlparser.py | |
parent | 64182f6a89761fbdb7929da067ca1e7d4e89bbb7 (diff) | |
download | poky-8d49bef632a0486e0172e543a6c2622398ed7a8c.tar.gz |
bitbake: bitbake/bs4: Upgrade 4.3.2 -> 4.4.1 (python 3 version)
Upgrade to 4.4.1 which has been run through 2to3 as per the maintainers
recommendation for v3 use.
(Bitbake rev: f06e0f8052ba44eeb9ce701192cdf19252b2646d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bs4/tests/test_htmlparser.py')
-rw-r--r-- | bitbake/lib/bs4/tests/test_htmlparser.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bitbake/lib/bs4/tests/test_htmlparser.py b/bitbake/lib/bs4/tests/test_htmlparser.py index bcb5ed232f..b45e35f999 100644 --- a/bitbake/lib/bs4/tests/test_htmlparser.py +++ b/bitbake/lib/bs4/tests/test_htmlparser.py | |||
@@ -1,6 +1,8 @@ | |||
1 | """Tests to ensure that the html.parser tree builder generates good | 1 | """Tests to ensure that the html.parser tree builder generates good |
2 | trees.""" | 2 | trees.""" |
3 | 3 | ||
4 | from pdb import set_trace | ||
5 | import pickle | ||
4 | from bs4.testing import SoupTest, HTMLTreeBuilderSmokeTest | 6 | from bs4.testing import SoupTest, HTMLTreeBuilderSmokeTest |
5 | from bs4.builder import HTMLParserTreeBuilder | 7 | from bs4.builder import HTMLParserTreeBuilder |
6 | 8 | ||
@@ -17,3 +19,14 @@ class HTMLParserTreeBuilderSmokeTest(SoupTest, HTMLTreeBuilderSmokeTest): | |||
17 | def test_namespaced_public_doctype(self): | 19 | def test_namespaced_public_doctype(self): |
18 | # html.parser can't handle namespaced doctypes, so skip this one. | 20 | # html.parser can't handle namespaced doctypes, so skip this one. |
19 | pass | 21 | pass |
22 | |||
23 | def test_builder_is_pickled(self): | ||
24 | """Unlike most tree builders, HTMLParserTreeBuilder and will | ||
25 | be restored after pickling. | ||
26 | """ | ||
27 | tree = self.soup("<a><b>foo</a>") | ||
28 | dumped = pickle.dumps(tree, 2) | ||
29 | loaded = pickle.loads(dumped) | ||
30 | self.assertTrue(isinstance(loaded.builder, type(tree.builder))) | ||
31 | |||
32 | |||