diff options
author | Leonard Richardson <leonardr@segfault.org> | 2018-07-15 08:27:40 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2018-07-15 08:27:40 -0400 |
commit | 15038b22ea020ea79928af2831c4b1dff869bcd4 (patch) | |
tree | 9b1104a2a07a14aaa7e522b3f3cf88ace387206f /bs4/testing.py | |
parent | a0457769bbdc682569dd41a48ae5acb1f21481cb (diff) |
Stop data loss when encountering an empty numeric entity, and
possibly in other cases. Thanks to tos.kamiya for the fix. [bug=1698503]
Diffstat (limited to 'bs4/testing.py')
-rw-r--r-- | bs4/testing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/testing.py b/bs4/testing.py index 6ba2506..9d42702 100644 --- a/bs4/testing.py +++ b/bs4/testing.py @@ -334,7 +334,7 @@ Hello, world! self.assertSoupEquals("�", expect) self.assertSoupEquals("�", expect) self.assertSoupEquals("�", expect) - + def test_multipart_strings(self): "Mostly to prevent a recurrence of a bug in the html5lib treebuilder." soup = self.soup("<html><h2>\nfoo</h2><p></p></html>") |