summaryrefslogtreecommitdiff
path: root/bs4/tests
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2022-04-10 13:42:02 -0400
committerLeonard Richardson <leonardr@segfault.org>2022-04-10 13:42:02 -0400
commit92b50fc6ae57038a09e9cace20604613b1b345e8 (patch)
treee695bca9b85d605272dee2128ffd4fe69af4b0d5 /bs4/tests
parentbae2e2ca3565a75fcff1d2bc911f0a2e022761b4 (diff)
Fixed another crash when overriding multi_valued_attributes and using the
html5lib parser. [bug=1948488]
Diffstat (limited to 'bs4/tests')
-rw-r--r--bs4/tests/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bs4/tests/__init__.py b/bs4/tests/__init__.py
index 4af4b0c..7f8b620 100644
--- a/bs4/tests/__init__.py
+++ b/bs4/tests/__init__.py
@@ -258,10 +258,10 @@ class TreeBuilderSmokeTest(object):
@pytest.mark.parametrize(
"multi_valued_attributes",
- [None, dict(b=['class']), {'*': ['notclass']}]
+ [None, {}, dict(b=['class']), {'*': ['notclass']}]
)
def test_attribute_not_multi_valued(self, multi_valued_attributes):
- markup = '<a class="a b c">'
+ markup = '<html xmlns="http://www.w3.org/1999/xhtml"><a class="a b c"></html>'
soup = self.soup(markup, multi_valued_attributes=multi_valued_attributes)
assert soup.a['class'] == 'a b c'