Add a build test for feedparser

This commit is contained in:
Kovid Goyal 2019-02-07 11:04:51 +05:30
parent 0c77b8503a
commit d436e2d756
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -275,6 +275,14 @@ class BuildTest(unittest.TestCase):
from calibre.library.comments import sanitize_comments_html
sanitize_comments_html(b'''<script>moo</script>xxx<img src="http://moo.com/x.jpg">''')
def test_feedparser(self):
from calibre.web.feeds.feedparser import parse
# sgmllib is needed for feedparser parsing malformed feeds
# on python3 you can get it by taking it from python2 stdlib and
# running 2to3 on it
import sgmllib
sgmllib, parse
def test_openssl(self):
import ssl
ssl.PROTOCOL_TLSv1_2