]> git.pld-linux.org Git - packages/python-bs4.git/blame - python-bs4-smart_quotes.patch
- added smart_quotes patch (give some encoding hint in test, it failed on python3)
[packages/python-bs4.git] / python-bs4-smart_quotes.patch
CommitLineData
a307bef6
JB
1--- beautifulsoup4-4.6.3/bs4/tests/test_soup.py.orig 2016-07-27 03:27:42.000000000 +0200
2+++ beautifulsoup4-4.6.3/bs4/tests/test_soup.py 2022-03-21 18:20:50.490829014 +0100
3@@ -171,7 +171,7 @@ class TestEntitySubstitution(unittest.Te
4 # MS smart quotes are a common source of frustration, so we
5 # give them a special test.
6 quotes = b"\x91\x92foo\x93\x94"
7- dammit = UnicodeDammit(quotes)
8+ dammit = UnicodeDammit(quotes, override_encodings=["windows-1252"])
9 self.assertEqual(self.sub.substitute_html(dammit.markup),
10 "‘’foo“”")
11
This page took 0.141395 seconds and 4 git commands to generate.