Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
14d99a14
Kaydet (Commit)
14d99a14
authored
Haz 17, 2012
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Ignore X-Antivirus headers in test_nntplib
üst
e6ef4622
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
test_nntplib.py
Lib/test/test_nntplib.py
+4
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_nntplib.py
Dosyayı görüntüle @
14d99a14
...
@@ -176,7 +176,10 @@ class NetworkedNNTPTestsMixin:
...
@@ -176,7 +176,10 @@ class NetworkedNNTPTestsMixin:
resp
,
article
=
self
.
server
.
article
(
art_num
)
resp
,
article
=
self
.
server
.
article
(
art_num
)
self
.
assertTrue
(
resp
.
startswith
(
"220 "
),
resp
)
self
.
assertTrue
(
resp
.
startswith
(
"220 "
),
resp
)
self
.
check_article_resp
(
resp
,
article
,
art_num
)
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
):
def
test_capabilities
(
self
):
# The server under test implements NNTP version 2 and has a
# The server under test implements NNTP version 2 and has a
...
...
Misc/NEWS
Dosyayı görüntüle @
14d99a14
...
@@ -301,6 +301,9 @@ Extension Modules
...
@@ -301,6 +301,9 @@ Extension Modules
Tests
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
- Issue #15043: test_gdb is now skipped entirely if gdb security settings
block loading of the gdb hooks
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