Skip to content

Commit ec31653

Browse files
authored
bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037)
1 parent c8a7b8f commit ec31653

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Lib/test/test_nntplib.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _check_desc(desc):
8282
desc = self.server.description(self.GROUP_NAME)
8383
_check_desc(desc)
8484
# Another sanity check
85-
self.assertIn("Python", desc)
85+
self.assertIn(self.DESC, desc)
8686
# With a pattern
8787
desc = self.server.description(self.GROUP_PAT)
8888
_check_desc(desc)
@@ -309,6 +309,7 @@ class NetworkedNNTPTests(NetworkedNNTPTestsMixin, unittest.TestCase):
309309
NNTP_HOST = 'news.trigofacile.com'
310310
GROUP_NAME = 'fr.comp.lang.python'
311311
GROUP_PAT = 'fr.comp.lang.*'
312+
DESC = 'Python'
312313

313314
NNTP_CLASS = NNTP
314315

@@ -343,8 +344,11 @@ class NetworkedNNTP_SSLTests(NetworkedNNTPTests):
343344
# 400 connections per day are accepted from each IP address."
344345

345346
NNTP_HOST = 'nntp.aioe.org'
346-
GROUP_NAME = 'comp.lang.python'
347-
GROUP_PAT = 'comp.lang.*'
347+
# bpo-42794: aioe.test is one of the official groups on this server
348+
# used for testing: https://news.aioe.org/manual/aioe-hierarchy/
349+
GROUP_NAME = 'aioe.test'
350+
GROUP_PAT = 'aioe.*'
351+
DESC = 'test'
348352

349353
NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None)
350354

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Update test_nntplib to use offical group name of news.aioe.org for testing.
2+
Patch by Dong-hee Na.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy