Page MenuHomePhabricator

wikibugs test warnings
Closed, ResolvedPublic

Description

tests/test_wikibugs2.py::TestWikibugs::test_offline_scrape
  /home/km/gerrit/labs/tools/wikibugs2/.tox/py34/lib/python3.4/site-packages/bs4/builder/_htmlparser.py:157: DeprecationWarning: The strict argument and mode are deprecated.
    parser = BeautifulSoupHTMLParser(*args, **kwargs)
  /home/km/gerrit/labs/tools/wikibugs2/.tox/py34/lib/python3.4/site-packages/bs4/builder/_htmlparser.py:157: DeprecationWarning: The value of convert_charrefs will become True in 3.5. You are encouraged to set the value explicitly.
    parser = BeautifulSoupHTMLParser(*args, **kwargs)

tests/test_wikibugs2.py::TestWikibugs::test_online_scrape
  /home/km/gerrit/labs/tools/wikibugs2/.tox/py34/lib/python3.4/site-packages/bs4/builder/_htmlparser.py:157: DeprecationWarning: The strict argument and mode are deprecated.
    parser = BeautifulSoupHTMLParser(*args, **kwargs)
  /home/km/gerrit/labs/tools/wikibugs2/.tox/py34/lib/python3.4/site-packages/bs4/builder/_htmlparser.py:157: DeprecationWarning: The value of convert_charrefs will become True in 3.5. You are encouraged to set the value explicitly.
    parser = BeautifulSoupHTMLParser(*args, **kwargs)

-- Docs: https://docs.pytest.org/en/latest/warnings.html

Event Timeline

Change 486880 had a related patch set uploaded (by Merlijn van Deen; owner: Merlijn van Deen):
[labs/tools/wikibugs2@master] Bump bs4 to 4.7.1

https://gerrit.wikimedia.org/r/486880

Reading through the bs4 changelog: https://bazaar.launchpad.net/~leonardr/beautifulsoup/bs4/view/head:/CHANGELOG I think this should be resolved in 4.4+. The warning seems gone with 4.7.1, so let's go to that version :-)