[Python-modules-commits] r33253 - in packages/beautifulsoup4/trunk/debian (4 files)
stefanor at users.alioth.debian.org
stefanor at users.alioth.debian.org
Mon Jul 6 03:56:51 UTC 2015
Date: Monday, July 6, 2015 @ 03:56:50
Author: stefanor
Revision: 33253
chardet-compatible-test.patch: Pass tests in the presence of
python-chardet.
Added:
packages/beautifulsoup4/trunk/debian/patches/
packages/beautifulsoup4/trunk/debian/patches/chardet-compatible-test.patch
packages/beautifulsoup4/trunk/debian/patches/series
Modified:
packages/beautifulsoup4/trunk/debian/changelog
Modified: packages/beautifulsoup4/trunk/debian/changelog
===================================================================
--- packages/beautifulsoup4/trunk/debian/changelog 2015-07-06 03:51:26 UTC (rev 33252)
+++ packages/beautifulsoup4/trunk/debian/changelog 2015-07-06 03:56:50 UTC (rev 33253)
@@ -5,6 +5,8 @@
* Build-Depend on python-setuptools + python3-setuptools.
* Bumped copyright years.
* Updated license to Expat. The trailing "Dammit" has been removed.
+ * chardet-compatible-test.patch: Pass tests in the presence of
+ python-chardet.
-- Stefano Rivera <stefanor at debian.org> Thu, 16 Oct 2014 23:03:06 -0700
Added: packages/beautifulsoup4/trunk/debian/patches/chardet-compatible-test.patch
===================================================================
--- packages/beautifulsoup4/trunk/debian/patches/chardet-compatible-test.patch (rev 0)
+++ packages/beautifulsoup4/trunk/debian/patches/chardet-compatible-test.patch 2015-07-06 03:56:50 UTC (rev 33253)
@@ -0,0 +1,21 @@
+Description: Fixed the test_detect_utf8 test so that it works when chardet is installed.
+Author: Leonard Richardson <leonardr at segfault.org>
+Origin: upstream, https://bazaar.launchpad.net/~leonardr/beautifulsoup/bs4/revision/390
+Bug-Upstream: https://bugs.launchpad.net/beautifulsoup/+bug/1471359
+
+--- a/bs4/tests/test_soup.py
++++ b/bs4/tests/test_soup.py
+@@ -299,10 +299,11 @@
+ dammit.unicode_markup, """<foo>''""</foo>""")
+
+ def test_detect_utf8(self):
+- utf8 = b"\xc3\xa9"
++ utf8 = b"Sacr\xc3\xa9 bleu! \xe2\x98\x83"
+ dammit = UnicodeDammit(utf8)
+- self.assertEqual(dammit.unicode_markup, u'\xe9')
+ self.assertEqual(dammit.original_encoding.lower(), 'utf-8')
++ self.assertEqual(dammit.unicode_markup, u'Sacr\xe9 bleu! \N{SNOWMAN}')
++
+
+ def test_convert_hebrew(self):
+ hebrew = b"\xed\xe5\xec\xf9"
Added: packages/beautifulsoup4/trunk/debian/patches/series
===================================================================
--- packages/beautifulsoup4/trunk/debian/patches/series (rev 0)
+++ packages/beautifulsoup4/trunk/debian/patches/series 2015-07-06 03:56:50 UTC (rev 33253)
@@ -0,0 +1 @@
+chardet-compatible-test.patch
More information about the Python-modules-commits
mailing list