Skip to content

gh-93096: Remove -t and -v flags from pickle cli#131068

Merged
vstinner merged 2 commits into
python:mainfrom
donbarbos:issue-93096-pickle
Mar 11, 2025
Merged

gh-93096: Remove -t and -v flags from pickle cli#131068
vstinner merged 2 commits into
python:mainfrom
donbarbos:issue-93096-pickle

Conversation

@donbarbos

@donbarbos donbarbos commented Mar 11, 2025

Copy link
Copy Markdown
Contributor
  • added load doctest to unittest
  • we still can run doctests using: ./python -m doctest Lib/pickle.py -v

Comment thread Lib/test/test_pickle.py Outdated

def load_tests(loader, tests, pattern):
tests.addTest(doctest.DocTestSuite())
tests.addTest(doctest.DocTestSuite(pickle))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, this looks like a bugfix. It should be backported. Can you extract this change into a new PR? It's not directly related to CLI changes.

@donbarbos donbarbos Mar 11, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, sure, should i open new issue or can i send PR for the current issue?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can reuse the same issue.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would it be possible to document the current command line interface (CLI) in Doc/library/pickle.rst? https://docs.python.org/dev/library/pickle.html

@donbarbos

Copy link
Copy Markdown
Contributor Author

Would it be possible to document the current command line interface (CLI) in Doc/library/pickle.rst? https://docs.python.org/dev/library/pickle.html

I think it can be suggested in issue #130160

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@serhiy-storchaka: Are you ok with these changes?

@vstinner

Copy link
Copy Markdown
Member

I think it can be suggested in issue #130160

You can reuse #93096 or create a new issue.

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@vstinner vstinner merged commit 425e0af into python:main Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants