mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:33:41 +02:00
Add a build test for feedparser
This commit is contained in:
parent
0c77b8503a
commit
d436e2d756
1 changed files with 8 additions and 0 deletions
|
|
@ -275,6 +275,14 @@ def test_markdown(self):
|
|||
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…
Reference in a new issue