summaryrefslogtreecommitdiff
path: root/tests/test_tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tree.py')
-rw-r--r--tests/test_tree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_tree.py b/tests/test_tree.py
index cefdf4a..0232bac 100644
--- a/tests/test_tree.py
+++ b/tests/test_tree.py
@@ -13,6 +13,7 @@ import copy
import cPickle as pickle
import re
from beautifulsoup import BeautifulSoup
+from beautifulsoup.builder import registry
from beautifulsoup.element import CData, SoupStrainer, Tag
from beautifulsoup.testing import SoupTest
@@ -523,7 +524,7 @@ class TestTreeModification(SoupTest):
self.assertEqual(soup.decode(), self.document_for('<a id2="foo"></a>'))
def test_new_tag_creation(self):
- builder = BeautifulSoup.default_builder()
+ builder = registry.lookup('html5lib')()
soup = self.soup("<body></body>", builder=builder)
a = Tag(soup, builder, 'a')
ol = Tag(soup, builder, 'ol')