Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
14d99a14
Commit
14d99a14
authored
Jun 17, 2012
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore X-Antivirus headers in test_nntplib
parent
e6ef4622
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Lib/test/test_nntplib.py
Lib/test/test_nntplib.py
+4
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_nntplib.py
View file @
14d99a14
...
...
@@ -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
...
...
Misc/NEWS
View file @
14d99a14
...
...
@@ -301,6 +301,9 @@ Extension Modules
Tests
-----
- test_nntplib now tolerates being run from behind NNTP gateways that add
"X-Antivirus" headers to articles
- Issue #15043: test_gdb is now skipped entirely if gdb security settings
block loading of the gdb hooks
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment