suppress bs4 DeprecationWarning, 'strip_cdata' option of HTMLParser

local/lib/python3.11/site-packages/bs4/builder/_lxml.py:124: DeprecationWarning: The 'strip_cdata' option of HTMLParser() has never done anything and will eventually be removed.

introduced in lxml 5.3.0, d31d21396c
pull/1258/head
Ryan Barrett 2024-08-12 13:51:18 -07:00
rodzic fa170253fe
commit 69a158aee5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -310,6 +310,9 @@ class TestCase(unittest.TestCase, testutil.Asserts):
# suppress a few warnings
# local/lib/python3.9/site-packages/bs4/__init__.py:435: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.
warnings.filterwarnings('ignore', category=MarkupResemblesLocatorWarning)
# local/lib/python3.11/site-packages/bs4/builder/_lxml.py:124: DeprecationWarning: The 'strip_cdata' option of HTMLParser() has never done anything and will eventually be removed.
warnings.filterwarnings('ignore', category=DeprecationWarning,
message="The 'strip_cdata' option of HTMLParser")
# arroba config
os.environ.update({