Skip to content

gh-1463: Added Refleak Checker Option under testing. - #1468

Merged
encukou merged 4 commits into
python:mainfrom
Lincoln-developer:fix-issue-1463
Dec 12, 2024
Merged

encukou merged 4 commits into
python:mainfrom
Lincoln-developer:fix-issue-1463

Conversation

@Lincoln-developer

@Lincoln-developer Lincoln-developer commented Nov 5, 2024 •

Copy link
Copy Markdown
Contributor

This pull request adds documentation for the -R flag in the python -m test command, enabling reference leak checking. This feature helps developers identify memory leaks when modifying C code.


📚 Documentation preview 📚: https://cpython-devguide--1468.org.readthedocs.build/

@encukou

encukou commented Nov 6, 2024

Copy link
Copy Markdown
Member

Thank you for the addition!
When first learning about -R, you aren't likely to know what values to use for <warmups> and <repeats>. So, I think it would be good if the first paragraph, and the example, used the defaults, which are specified (somewhat unusually) with a lone colon after the -R: python -m test <test_name> -R :

A follow-up paragraph can then mention specifying <warmups> and <repeats> explicitly (which would help explain what the : is for).

@Lincoln-developer

Lincoln-developer commented Nov 6, 2024 •

Copy link
Copy Markdown
Contributor Author

Thank you for the addition! When first learning about -R, you aren't likely to know what values to use for <warmups> and <repeats>. So, I think it would be good if the first paragraph, and the example, used the defaults, which are specified (somewhat unusually) with a lone colon after the -R: python -m test <test_name> -R :

A follow-up paragraph can then mention specifying <warmups> and <repeats> explicitly (which would help explain what the : is for).

Thank you @encukou for the insight sighted out, let me work on these changes to have a more clear view of this context.

Comment thread testing/run-write-tests.rst Outdated
Comment thread testing/run-write-tests.rst Outdated
@encukou

encukou commented Dec 11, 2024

Copy link
Copy Markdown
Member

Sorry for dropping the ball here! I'll merge with a few small adjustments.
Thank you for the contribution, @Lincoln-developer!

@encukou
encukou merged commit 0b9001f into python:main Dec 12, 2024
@Lincoln-developer

Copy link
Copy Markdown
Contributor Author

Sorry for dropping the ball here! I'll merge with a few small adjustments. Thank you for the contribution, @Lincoln-developer!

Thank you for reviewing and merging this pull request.

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.

2 participants