-
-
Notifications
You must be signed in to change notification settings - Fork 844
Use :cpy-file:
throughout the Devguide
#984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -101,12 +101,12 @@ C API Tests | |||||
Tests for the public C API live in the ``_testcapi`` module. | ||||||
Functions named ``test_*`` are used as tests directly. | ||||||
Tests that need Python code (or are just easier to partially write in Python) | ||||||
live in ``Lib/test``, mainly in :file:`Lib/test/test_capi.py`. | ||||||
live in ``Lib/test``, mainly in :cpy-file:`Lib/test/test_capi`. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could also link things that aren't already
Suggested change
There's a lot more that could be linked on this page too, especially the first few sections. But let's keep the scope of this PR to replacing the old There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed on keeping the PR focused. We should also try to create links only when/where they are useful, but there are definitely more places where There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That SGTM |
||||||
|
||||||
Due to its size, the ``_testcapi`` module is defined in several source | ||||||
files. | ||||||
To add a new set of tests (or extract a set out of the monolithic | ||||||
:file:`Modules/_testcapimodule.c`): | ||||||
:cpy-file:`Modules/_testcapimodule.c`): | ||||||
|
||||||
- Create a C file named ``Modules/_testcapi/yourfeature.c`` | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we add
~
support to:cpy-file:
we could hide the dir.