8000 bpo-42794: Update test_nntplib to use offical group name for testing · python/cpython@3cd1598 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3cd1598

Browse files
committed
bpo-42794: Update test_nntplib to use offical group name for testing
1 parent c8a7b8f commit 3cd1598

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Lib/test/test_nntplib.py

Lines changed: 5 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,9 @@ 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+
GROUP_NAME = 'aioe.test'
348+
GROUP_PAT = 'aioe.*'
349+
DESC = 'test'
348350

349351
NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None)
350352

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)
0