]> git.pld-linux.org Git - packages/python-bs4.git/blob - python-bs4-smart_quotes.patch
rebuild with python 3.10
[packages/python-bs4.git] / python-bs4-smart_quotes.patch
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.032988 seconds and 3 git commands to generate.