File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,7 +177,10 @@ def test_article_head_body(self):
177177 resp , article = self .server .article (art_num )
178178 self .assertTrue (resp .startswith ("220 " ), resp )
179179 self .check_article_resp (resp , article , art_num )
180- self .assertEqual (article .lines , head .lines + [b'' ] + body .lines )
180+ # Tolerate running the tests from behind a NNTP virus checker
181+ filtered_lines = [line for line in article .lines
182+ if not line .startswith (b'X-Antivirus' )]
183+ self .assertEqual (filtered_lines , head .lines + [b'' ] + body .lines )
181184
182185 def test_capabilities (self ):
183186 # The server under test implements NNTP version 2 and has a
Original file line number Diff line number Diff line change @@ -134,6 +134,9 @@ Documentation
134134Tests
135135-----
136136
137+ - test_nntplib now tolerates being run from behind NNTP gateways that add
138+ "X-Antivirus" headers to articles
139+
137140- Issue #15043: test_gdb is now skipped entirely if gdb security settings
138141 block loading of the gdb hooks
139142
You can’t perform that action at this time.
0 commit comments