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
307ef8ae
Commit
307ef8ae
authored
Jun 17, 2012
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Plain Diff
Merge from 3.2 (Ignore X-Antivirus headers in test_nntplib)
parents
e51e25a3
14d99a14
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 @
307ef8ae
...
...
@@ -177,7 +177,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 @
307ef8ae
...
...
@@ -134,6 +134,9 @@ Documentation
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