Skip to content

Conversation

@adamchainz
Copy link
Member

Closes #12946.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Nov 8, 2024
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adamchainz!

@nicoddemus
Copy link
Member

Hmm the tests are failing, can you take a look @adamchainz ?

do_c = do_cont = do_continue

def do_quit(self, arg):
"""Raise Exit outcome when quit command is used in pdb.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not keep this as is?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to copy the original docstring from do_quit, which is the purpose of the PR... turning into a comment makes sure we do not lose that information.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I changed this because it won't be the real docstring at runtime after __doc__ is set.

@adamchainz adamchainz force-pushed the pdb_docstrings branch 2 times, most recently from ecc28fe to 6827227 Compare December 27, 2024 15:33
Co-authored-by: Bruno Oliveira <[email protected]>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
@nicoddemus nicoddemus merged commit 0646383 into pytest-dev:main Mar 1, 2025
28 checks passed
@nicoddemus
Copy link
Member

Thanks @adamchainz!

@adamchainz adamchainz deleted the pdb_docstrings branch March 2, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pytest pdb commands missing documentation

3 participants