summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2021-01-01 23:20:33 +0900
committerGitHub <noreply@github.com>2021-01-01 23:20:33 +0900
commitec3165320e81ac87edcb85c86c452528ddbaec1c (patch)
treebb00cd3be77d71f9bc3a92794879f4955f80a933 /Lib/test
parentc8a7b8fa1b5f9a6d3052db792018dc27c5a3a794 (diff)
downloadcpython-git-ec3165320e81ac87edcb85c86c452528ddbaec1c.tar.gz
bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_nntplib.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py
index b11c19c84d..4dbf941036 100644
--- a/Lib/test/test_nntplib.py
+++ b/Lib/test/test_nntplib.py
@@ -82,7 +82,7 @@ class NetworkedNNTPTestsMixin:
desc = self.server.description(self.GROUP_NAME)
_check_desc(desc)
# Another sanity check
- self.assertIn("Python", desc)
+ self.assertIn(self.DESC, desc)
# With a pattern
desc = self.server.description(self.GROUP_PAT)
_check_desc(desc)
@@ -309,6 +309,7 @@ class NetworkedNNTPTests(NetworkedNNTPTestsMixin, unittest.TestCase):
NNTP_HOST = 'news.trigofacile.com'
GROUP_NAME = 'fr.comp.lang.python'
GROUP_PAT = 'fr.comp.lang.*'
+ DESC = 'Python'
NNTP_CLASS = NNTP
@@ -343,8 +344,11 @@ class NetworkedNNTP_SSLTests(NetworkedNNTPTests):
# 400 connections per day are accepted from each IP address."
NNTP_HOST = 'nntp.aioe.org'
- GROUP_NAME = 'comp.lang.python'
- GROUP_PAT = 'comp.lang.*'
+ # bpo-42794: aioe.test is one of the official groups on this server
+ # used for testing: https://news.aioe.org/manual/aioe-hierarchy/
+ GROUP_NAME = 'aioe.test'
+ GROUP_PAT = 'aioe.*'
+ DESC = 'test'
NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None)