Skip to content

Commit ed2bd46

Browse files
committed
Fix GHA Docs warings
1 parent c454dea commit ed2bd46

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Fix :func:`pdb._pyrepl_available` to reflect whether pyrepl can actually be
2-
used for the given streams at call time, instead of relying only on the
3-
import-time :data:`~_pyrepl.main.CAN_USE_PYREPL` flag. :class:`pdb.Pdb` now
4-
passes ``stdin`` and ``stdout`` to :func:`~pdb._pyrepl_available`. This
5-
prevents :exc:`AttributeError` when ``pyrepl_input`` is ``None`` in non-TTY
1+
Fix ``pdb._pyrepl_available()`` to check whether the given stdin/stdout
2+
streams support pyrepl at call time, instead of relying only on the
3+
import-time ``_pyrepl.main.CAN_USE_PYREPL`` flag. :class:`pdb.Pdb` now
4+
passes its streams to ``pdb._pyrepl_available()``. This prevents
5+
:exc:`AttributeError` when ``pyrepl_input`` is ``None`` in non-TTY
66
environments (such as :mod:`test` worker subprocesses) and avoids failures
77
when ``stdin`` is replaced by doctest helpers without
88
:meth:`~io.IOBase.fileno`.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Fix :mod:`test.test_pdb` to skip pyrepl-dependent tests at runtime instead
2-
of using import-time :func:`unittest.skipIf` on
3-
:func:`pdb._pyrepl_available`. This fixes
4-
``PdbTestColorize.test_gen_colors`` errors under ``make test``.
1+
Fix ``test.test_pdb`` to skip pyrepl-dependent tests at runtime instead of
2+
using import-time :func:`unittest.skipIf` on ``pdb._pyrepl_available()``.
3+
This fixes ``PdbTestColorize.test_gen_colors`` errors under ``make test``.

0 commit comments

Comments
 (0)