summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2015-11-16 20:20:16 +0600
committerSergey M․ <[email protected]>2015-11-16 20:20:16 +0600
commit7aefc49c4013efb5056b2c1237e22c52cb5d3c49 (patch)
tree55e213265c0075e6d965329089417ae36def4fae /test
parentbd1512d19649c280197729814766d590ea6c023b (diff)
downloadyoutube-dl-7aefc49c4013efb5056b2c1237e22c52cb5d3c49.tar.gz
youtube-dl-7aefc49c4013efb5056b2c1237e22c52cb5d3c49.zip
[utils] Skip invalid/non HTML entities (Closes #7518)
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 01829f71e..ea1ff0547 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -210,8 +210,8 @@ class TestUtil(unittest.TestCase):
self.assertEqual(unescapeHTML('%20;'), '%20;')
self.assertEqual(unescapeHTML('&#x2F;'), '/')
self.assertEqual(unescapeHTML('&#47;'), '/')
- self.assertEqual(
- unescapeHTML('&eacute;'), 'é')
+ self.assertEqual(unescapeHTML('&eacute;'), 'é')
+ self.assertEqual(unescapeHTML('&#2013266066;'), '&#2013266066;')
def test_daterange(self):
_20century = DateRange("19000101", "20000101")