-
Committer:
tar_scm test suite
-
Date:
2014-01-08 14:57:32 UTC
-
Revision ID:
root@localhost-20140108145732-3w0wbt0hvwr0k3st
Fix lxml deprecation warning tests.
The class BeautifulStoneSoup is instanciated first in
bs4.tests.test_soup:LXMLTreeBuilderSmokeTest.test_beautifulstonesoup_is_xml_parser
causing the UserWarning to be printed once. However, the deprecation test will
fail afterwards:
ERROR: test_beautifulstonesoup (bs4.tests.test_soup.TestDeprecatedConstructorArguments)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/Projects/python/beautifulsoup/bs4/tests/test_soup.py", line 69, in test_beautifulstonesoup
self.assertTrue("BeautifulStoneSoup class is deprecated" in str(w[0].message))
IndexError: list index out of range
Instead, don't eat the UserWarning in the first test so that the second one can
catch it properly.