--- /dev/null
+--- beautifulsoup4-4.6.3/bs4/tests/test_soup.py.orig 2016-07-27 03:27:42.000000000 +0200
++++ beautifulsoup4-4.6.3/bs4/tests/test_soup.py 2022-03-21 18:20:50.490829014 +0100
+@@ -171,7 +171,7 @@ class TestEntitySubstitution(unittest.Te
+ # MS smart quotes are a common source of frustration, so we
+ # give them a special test.
+ quotes = b"\x91\x92foo\x93\x94"
+- dammit = UnicodeDammit(quotes)
++ dammit = UnicodeDammit(quotes, override_encodings=["windows-1252"])
+ self.assertEqual(self.sub.substitute_html(dammit.markup),
+ "‘’foo“”")
+
# Source0-md5: c17714d0f91a23b708a592cb3c697728
Patch0: test_suite.patch
Patch1: %{name}-lxml.patch
+Patch2: %{name}-smart_quotes.patch
URL: https://www.crummy.com/software/BeautifulSoup/
BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: rpm-pythonprov
%setup -q -n beautifulsoup4-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%if %{with python2}