summaryrefslogtreecommitdiff
path: root/beautifulsoup/testing.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-19 21:16:20 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-19 21:16:20 -0500
commit86ae2ed0a644f124475a4aff3b34e229f5b7ec8f (patch)
tree339d0a5724f97c1c406b3aaca042e8341c33fd3d /beautifulsoup/testing.py
parente170ff33e67e806cf33e2e51fcefcfa0b9310d96 (diff)
Set up an lxml parser that only parses XML, though it's not very functional yet.
Diffstat (limited to 'beautifulsoup/testing.py')
-rw-r--r--beautifulsoup/testing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/beautifulsoup/testing.py b/beautifulsoup/testing.py
index 74937d9..9b1e858 100644
--- a/beautifulsoup/testing.py
+++ b/beautifulsoup/testing.py
@@ -13,7 +13,8 @@ class SoupTest(unittest.TestCase):
def soup(self, markup, **kwargs):
"""Build a Beautiful Soup object from markup."""
- return BeautifulSoup(markup, builder=self.default_builder, **kwargs)
+ builder = kwargs.pop('builder', self.default_builder)
+ return BeautifulSoup(markup, builder=builder, **kwargs)
def document_for(self, markup):
"""Turn an HTML fragment into a document.