From d436e2d7565d1f7ea7c97e0020b16f347e2800e7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Feb 2019 11:04:51 +0530 Subject: [PATCH] Add a build test for feedparser --- src/calibre/test_build.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/calibre/test_build.py b/src/calibre/test_build.py index 47b991868b..c38baac7bf 100644 --- a/src/calibre/test_build.py +++ b/src/calibre/test_build.py @@ -275,6 +275,14 @@ class BuildTest(unittest.TestCase): from calibre.library.comments import sanitize_comments_html sanitize_comments_html(b'''xxx''') + 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