diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-19 21:21:14 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-19 21:21:14 -0500 |
commit | 22e7fc268c6150f812e9af55f28dba7aeda4d053 (patch) | |
tree | 766662556ae441c5474e754fe9d582ffce3ff257 /beautifulsoup/testing.py | |
parent | 8249b803d9bab9c06be02a244e629cb732f4f5b1 (diff) | |
parent | 9a936b48fe05666780662c76d5df3b3de7b48074 (diff) |
Preliminary work for getting XML parsing to work.
Diffstat (limited to 'beautifulsoup/testing.py')
-rw-r--r-- | beautifulsoup/testing.py | 3 |
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. |