diff --git a/tests/checker/test_news.py b/tests/checker/test_news.py index fbbae9d8..a5cc7d06 100644 --- a/tests/checker/test_news.py +++ b/tests/checker/test_news.py @@ -26,7 +26,7 @@ from . import LinkCheckTest NNTP_SERVER = "news.uni-stuttgart.de" # info string returned by news server NNTP_INFO = ( - "200 news.uni-stuttgart.de InterNetNews NNRP server " "INN 2.5.2 ready (no posting)" + "200 news.uni-stuttgart.de InterNetNews NNRP server INN 2.5.2 ready (no posting)" ) # Most free NNTP servers are slow, so don't waist a lot of time running those. NNTP_TIMEOUT_SECS = 30 diff --git a/tests/test_url.py b/tests/test_url.py index b060af99..fb5633a5 100644 --- a/tests/test_url.py +++ b/tests/test_url.py @@ -61,7 +61,7 @@ class TestUrl(unittest.TestCase): def test_pathattack(self): # Windows winamp path attack prevention. - url = "http://server/..%5c..%5c..%5c..%5c..%5c..%5c..%5c.." "%5ccskin.zip" + url = "http://server/..%5c..%5c..%5c..%5c..%5c..%5c..%5c..%5ccskin.zip" nurl = "http://server/cskin.zip" self.assertEqual( linkcheck.url.url_quote(url_norm(url), encoding="iso-8859-1"), nurl @@ -108,7 +108,7 @@ class TestUrl(unittest.TestCase): "46F9BD%2540monmouth.com%26rnum%3D2" ) self.urlnormtest(url, url) - url = "http://redirect.alexa.com/redirect?" "http://www.offeroptimizer.com" + url = "http://redirect.alexa.com/redirect?http://www.offeroptimizer.com" self.urlnormtest(url, url) url = "http://www.lesgensducinema.com/photo/Philippe%20Nahon.jpg" self.urlnormtest(url, url)