bpo-42794: Update test_nntplib to use offical group name for testing (GH-24037)
(cherry picked from commit ec3165320e
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
parent
8333d421c0
commit
b20d5e5ce9
|
@ -82,7 +82,7 @@ class NetworkedNNTPTestsMixin:
|
||||||
desc = self.server.description(self.GROUP_NAME)
|
desc = self.server.description(self.GROUP_NAME)
|
||||||
_check_desc(desc)
|
_check_desc(desc)
|
||||||
# Another sanity check
|
# Another sanity check
|
||||||
self.assertIn("Python", desc)
|
self.assertIn(self.DESC, desc)
|
||||||
# With a pattern
|
# With a pattern
|
||||||
desc = self.server.description(self.GROUP_PAT)
|
desc = self.server.description(self.GROUP_PAT)
|
||||||
_check_desc(desc)
|
_check_desc(desc)
|
||||||
|
@ -309,6 +309,7 @@ class NetworkedNNTPTests(NetworkedNNTPTestsMixin, unittest.TestCase):
|
||||||
NNTP_HOST = 'news.trigofacile.com'
|
NNTP_HOST = 'news.trigofacile.com'
|
||||||
GROUP_NAME = 'fr.comp.lang.python'
|
GROUP_NAME = 'fr.comp.lang.python'
|
||||||
GROUP_PAT = 'fr.comp.lang.*'
|
GROUP_PAT = 'fr.comp.lang.*'
|
||||||
|
DESC = 'Python'
|
||||||
|
|
||||||
NNTP_CLASS = NNTP
|
NNTP_CLASS = NNTP
|
||||||
|
|
||||||
|
@ -343,8 +344,11 @@ class NetworkedNNTP_SSLTests(NetworkedNNTPTests):
|
||||||
# 400 connections per day are accepted from each IP address."
|
# 400 connections per day are accepted from each IP address."
|
||||||
|
|
||||||
NNTP_HOST = 'nntp.aioe.org'
|
NNTP_HOST = 'nntp.aioe.org'
|
||||||
GROUP_NAME = 'comp.lang.python'
|
# bpo-42794: aioe.test is one of the official groups on this server
|
||||||
GROUP_PAT = 'comp.lang.*'
|
# 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)
|
NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Update test_nntplib to use offical group name of news.aioe.org for testing.
|
||||||
|
Patch by Dong-hee Na.
|
Loading…
Reference in New Issue