forked from pool/python-beautifulsoup4
24 lines
1.2 KiB
Diff
24 lines
1.2 KiB
Diff
|
diff -ruN a/bs4/testing.py b/bs4/testing.py
|
||
|
--- a/bs4/testing.py 2013-06-10 15:16:25.000000000 +0200
|
||
|
+++ b/bs4/testing.py 2014-01-08 16:09:35.845681062 +0100
|
||
|
@@ -493,7 +493,7 @@
|
||
|
self.assertTrue(b"< < hey > >" in encoded)
|
||
|
|
||
|
def test_can_parse_unicode_document(self):
|
||
|
- markup = u'<?xml version="1.0" encoding="euc-jp"><root>Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!</root>'
|
||
|
+ markup = u'<?xml version="1.0""><root>Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!</root>'
|
||
|
soup = self.soup(markup)
|
||
|
self.assertEqual(u'Sacr\xe9 bleu!', soup.root.string)
|
||
|
|
||
|
diff -ruN a/bs4/tests/test_lxml.py b/bs4/tests/test_lxml.py
|
||
|
--- a/bs4/tests/test_lxml.py 2013-08-19 16:29:42.000000000 +0200
|
||
|
+++ b/bs4/tests/test_lxml.py 2014-01-08 16:10:33.157497450 +0100
|
||
|
@@ -61,6 +61,7 @@
|
||
|
# Make sure that the deprecated BSS class uses an xml builder
|
||
|
# if one is installed.
|
||
|
with warnings.catch_warnings(record=True) as w:
|
||
|
+ warnings.simplefilter("always")
|
||
|
soup = BeautifulStoneSoup("<b />")
|
||
|
self.assertEqual(u"<b/>", unicode(soup.b))
|
||
|
self.assertTrue("BeautifulStoneSoup class is deprecated" in str(w[0].message))
|