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
1f5d2a08
Kaydet (Commit)
1f5d2a08
authored
Haz 24, 2012
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix test to really run behind a NNTP virus checker
üst
5f762af3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
test_nntplib.py
Lib/test/test_nntplib.py
+5
-2
No files found.
Lib/test/test_nntplib.py
Dosyayı görüntüle @
1f5d2a08
...
@@ -178,9 +178,12 @@ class NetworkedNNTPTestsMixin:
...
@@ -178,9 +178,12 @@ class NetworkedNNTPTestsMixin:
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
)
# Tolerate running the tests from behind a NNTP virus checker
# Tolerate running the tests from behind a NNTP virus checker
blacklist
=
lambda
line
:
line
.
startswith
(
b
'X-Antivirus'
)
filtered_head_lines
=
[
line
for
line
in
head
.
lines
if
not
blacklist
(
line
)]
filtered_lines
=
[
line
for
line
in
article
.
lines
filtered_lines
=
[
line
for
line
in
article
.
lines
if
not
line
.
startswith
(
b
'X-Antivirus'
)]
if
not
blacklist
(
line
)]
self
.
assertEqual
(
filtered_lines
,
head
.
lines
+
[
b
''
]
+
body
.
lines
)
self
.
assertEqual
(
filtered_lines
,
filtered_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
...
...
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