Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ba042 commit 1dd75a6Copy full SHA for 1dd75a6
1 file changed
Lib/test/test_nntplib.py
@@ -177,9 +177,12 @@ def test_article_head_body(self):
177
self.assertTrue(resp.startswith("220 "), resp)
178
self.check_article_resp(resp, article, art_num)
179
# Tolerate running the tests from behind a NNTP virus checker
180
+ blacklist = lambda line: line.startswith(b'X-Antivirus')
181
+ filtered_head_lines = [line for line in head.lines
182
+ if not blacklist(line)]
183
filtered_lines = [line for line in article.lines
- if not line.startswith(b'X-Antivirus')]
- self.assertEqual(filtered_lines, head.lines + [b''] + body.lines)
184
185
+ self.assertEqual(filtered_lines, filtered_head_lines + [b''] + body.lines)
186
187
def test_capabilities(self):
188
# The server under test implements NNTP version 2 and has a
0 commit comments