summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO.txt5
-rw-r--r--bs4/tests/test_builder_registry.py5
2 files changed, 6 insertions, 4 deletions
diff --git a/TODO.txt b/TODO.txt
index 8b239b1..fc305fb 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -1,9 +1,8 @@
Bugs
----
-* Issue a DataLossWarning if Unicode, Dammit replaces characters.
-
-* I think whitespace may not be processed correctly.
+* You can't deepcopy a tree if it was created with the html.parser
+ tree builder.
* html5lib doesn't support SoupStrainers, which is OK, but there
should be a warning about it.
diff --git a/bs4/tests/test_builder_registry.py b/bs4/tests/test_builder_registry.py
index 84b2daf..92ad10f 100644
--- a/bs4/tests/test_builder_registry.py
+++ b/bs4/tests/test_builder_registry.py
@@ -47,8 +47,11 @@ class BuiltInRegistryTest(unittest.TestCase):
self.assertEqual(registry.lookup('html'), LXMLTreeBuilder)
self.assertEqual(registry.lookup('xml'), LXMLTreeBuilderForXML)
else:
- self.assertEqual(registry.lookup('html'), HTML5TreeBuilder)
self.assertEqual(registry.lookup('xml'), None)
+ if HTML5LIB_PRESENT:
+ self.assertEqual(registry.lookup('html'), HTML5TreeBuilder)
+ else:
+ self.assertEqual(registry.lookup('html'), HTMLParserTreeBuilder)
def test_named_library(self):
if LXML_PRESENT: