lp:~saschpe/beautifulsoup/beautifulsoup

Created by Sascha Peilicke on 2014-01-08 and last modified on 2014-01-08
Get this branch:
bzr branch lp:~saschpe/beautifulsoup/beautifulsoup
Only Sascha Peilicke can upload to this branch. If you are Sascha Peilicke please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Sascha Peilicke
Project:
Beautiful Soup
Status:
Development

Recent revisions

324. By tar_scm test suite <root@localhost> on 2014-01-08

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.

323. By tar_scm test suite <root@localhost> on 2014-01-08

Don't provide encoding for XML unicode tests with LXML.

ERROR: test_can_parse_unicode_document (bs4.tests.test_lxml.LXMLXMLTreeBuilderSmokeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/Projects/python/beautifulsoup/bs4/testing.py", line 498, in test_can_parse_unicode_document
    self.assertEqual(u'Sacr\xe9 bleu!', soup.root.string)
AttributeError: 'NoneType' object has no attribute 'string'

As described at http://lxml.de/parsing.html#python-unicode-strings LXML doesn't like
Unicode XML that specifies a (wrong) encoding.

322. By Leonard Richardson on 2013-06-03

Updated NEWS.

321. By Leonard Richardson on 2013-06-03

A NavigableString object now has an immutable '.name' property whose
+ value is always None. This makes it easier to iterate over a mixed
+ list of tags and strings without having to check whether each
+ element is a tag or a string.

320. By Leonard Richardson on 2013-06-03

_last_descendant can be optimized in some cases.

319. By Leonard Richardson on 2013-06-03

Save another Element creation.

318. By Leonard Richardson on 2013-06-03

Improved performance for html5lib.

317. By Leonard Richardson on 2013-06-03

Added raw html5lib to the list of parsers that get tested.

316. By Leonard Richardson on 2013-06-03

Changed _popToTag to run through a single range instead of two.

315. By Leonard Richardson on 2013-06-03

Improved _popToTag a tiny bit.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:beautifulsoup
This branch contains Public information 
Everyone can see this information.

Subscribers