mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Add a build test for feedparser
This commit is contained in:
parent
0c77b8503a
commit
d436e2d756
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user