Skip to content

Commit f5850c1

Browse files
committed
Fix CI
1 parent 5816daa commit f5850c1

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎Doc/library/poplib.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ The :mod:`!poplib` module can be executed from the command line.
277277

278278
.. code-block:: sh
279279
280-
python -m poplib [-h] host user password [--port P] [--ssl | --tls] [--timeout T] [-v | -vv]
280+
python -m poplib [-h] [--port PORT] [--timeout TIMEOUT] [-v] [--ssl | --tls] host user password
281281
282282
The following options are accepted:
283283

@@ -301,13 +301,13 @@ The following options are accepted:
301301

302302
POP3 :meth:`password <POP3.pass_>`.
303303

304-
.. option:: --port <P>
304+
.. option:: --port PORT
305305

306306
POP3 port.
307307

308308
.. versionadded:: next
309309

310-
.. option:: --timeout <T>
310+
.. option:: --timeout TIMEOUT
311311

312312
Connection timeout.
313313

‎Lib/test/test_poplib.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,9 @@ def test_help(self):
681681
with self.subTest(help_opt=help_opt):
682682
return_code, output = invoke_command_line(help_opt)
683683
self.assertEqual(return_code, 0)
684-
self.assertIn('usage: python.exe -m poplib', output)
684+
self.assertIn('usage:', output)
685+
self.assertIn('positional arguments:', output)
686+
self.assertIn('options:', output)
685687

686688
@test_support.force_not_colorized
687689
@test_support.requires_subprocess()

0 commit comments

Comments
 (0)