From 14d99a14912343061463049e814a15127e79c69e Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sun, 17 Jun 2012 21:27:18 +1000 Subject: Ignore X-Antivirus headers in test_nntplib --- Lib/test/test_nntplib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_nntplib.py') diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py index cc490f1e97..86827f37f5 100644 --- a/Lib/test/test_nntplib.py +++ b/Lib/test/test_nntplib.py @@ -176,7 +176,10 @@ class NetworkedNNTPTestsMixin: resp, article = self.server.article(art_num) self.assertTrue(resp.startswith("220 "), resp) self.check_article_resp(resp, article, art_num) - self.assertEqual(article.lines, head.lines + [b''] + body.lines) + # Tolerate running the tests from behind a NNTP virus checker + filtered_lines = [line for line in article.lines + if not line.startswith(b'X-Antivirus')] + self.assertEqual(filtered_lines, head.lines + [b''] + body.lines) def test_capabilities(self): # The server under test implements NNTP version 2 and has a -- cgit v1.2.1