From 86ae2ed0a644f124475a4aff3b34e229f5b7ec8f Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sat, 19 Feb 2011 21:16:20 -0500 Subject: Set up an lxml parser that only parses XML, though it's not very functional yet. --- beautifulsoup/testing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'beautifulsoup/testing.py') 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. -- cgit v1.2.3