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_builder_registry.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_builder_registry.py')
-rw-r--r-- | bitbake/lib/bs4/tests/test_builder_registry.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/bitbake/lib/bs4/tests/test_builder_registry.py b/bitbake/lib/bs4/tests/test_builder_registry.py index 92ad10fb04..90cad82933 100644 --- a/bitbake/lib/bs4/tests/test_builder_registry.py +++ b/bitbake/lib/bs4/tests/test_builder_registry.py | |||
@@ -1,6 +1,7 @@ | |||
1 | """Tests of the builder registry.""" | 1 | """Tests of the builder registry.""" |
2 | 2 | ||
3 | import unittest | 3 | import unittest |
4 | import warnings | ||
4 | 5 | ||
5 | from bs4 import BeautifulSoup | 6 | from bs4 import BeautifulSoup |
6 | from bs4.builder import ( | 7 | from bs4.builder import ( |
@@ -67,10 +68,15 @@ class BuiltInRegistryTest(unittest.TestCase): | |||
67 | HTMLParserTreeBuilder) | 68 | HTMLParserTreeBuilder) |
68 | 69 | ||
69 | def test_beautifulsoup_constructor_does_lookup(self): | 70 | def test_beautifulsoup_constructor_does_lookup(self): |
70 | # You can pass in a string. | 71 | |
71 | BeautifulSoup("", features="html") | 72 | with warnings.catch_warnings(record=True) as w: |
72 | # Or a list of strings. | 73 | # This will create a warning about not explicitly |
73 | BeautifulSoup("", features=["html", "fast"]) | 74 | # specifying a parser, but we'll ignore it. |
75 | |||
76 | # You can pass in a string. | ||
77 | BeautifulSoup("", features="html") | ||
78 | # Or a list of strings. | ||
79 | BeautifulSoup("", features=["html", "fast"]) | ||
74 | 80 | ||
75 | # You'll get an exception if BS can't find an appropriate | 81 | # You'll get an exception if BS can't find an appropriate |
76 | # builder. | 82 | # builder. |