summaryrefslogtreecommitdiff
path: root/bs4/tests/test_htmlparser.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-02-20 12:40:35 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2012-02-20 12:40:35 -0500
commit614baaff5871c95afcfbfee431b0ef0b23123721 (patch)
treec416aaf17893b0f5ba17485373a6a72298e42755 /bs4/tests/test_htmlparser.py
parent85baeb52b43c5d61dd7cc274ca9c31972ae88bfc (diff)
Temporarily skip the deepcopy test when lxml is not installed.
Diffstat (limited to 'bs4/tests/test_htmlparser.py')
-rw-r--r--bs4/tests/test_htmlparser.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/bs4/tests/test_htmlparser.py b/bs4/tests/test_htmlparser.py
index 474e92a..a066fe0 100644
--- a/bs4/tests/test_htmlparser.py
+++ b/bs4/tests/test_htmlparser.py
@@ -454,16 +454,7 @@ class TestHTMLParserTreeBuilderInvalidMarkup(SoupTest):
def test_attribute_value_never_got_closed(self):
markup = '<a href="http://foo.com/</a> and blah and blah'
soup = self.soup(markup)
- self.assertEqual(soup.encode(), "")
-
- def test_attribute_value_was_closed_by_subsequent_tag(self):
- markup = """<a href="foo</a>, </a><a href="bar">baz</a>"""
- soup = self.soup(markup)
- self.assertEqual(soup.encode(), "")
-
- def test_unquoted_attribute_value(self):
- self.assertRaises(
- HTMLParseError, self.soup, '<a style={height:21px;}></a>')
+ self.assertEqual(soup.encode(), b"")
def test_attribute_value_with_embedded_brackets(self):
soup = self.soup('<a b="<a>">')