Repository navigation
Conversation
…d TLS reassembly data modules (#3202) ALIASES in tests/project/test_docs_viewcode_builtins_1863_unit.py was a hand-kept list of the modules binding a BufferID alias, and it missed the SCTP, DTLS and TLS reassembly data modules, so the check that each alias reports builtins to viewcode and stays in its own module never ran for them. It is now read from the source: every module-level binding of a subscripted Tuple under pcapkit, as (module, name) pairs. That also brings in SCTP reassembly's MessageID, the one such alias not named BufferID. AliasScanTests pins what the scan finds and leaves.
JarryShaw
force-pushed
the
test/3202-viewcode-bufferid-aliases
branch
from
November 29, 2026 03:58
0cbd65c to
67b6f14
Compare
Owner
Author
|
Good to go at
|
Contributor
|
Coverage: 94.93% (unit tier, Python 3.15,
Per-file detail: the |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please follow the guide below
Put an
xinto every box [ ] that applies to your pull request (like this: [x])Use the Preview tab to see how your pull request will look
Searched for similar pull requests
Followed the coding style (
make pylint,make mypy,make isort)make testpasses, and a test case covers the changeDescribed the user-visible change below and left its changelog entry to the maintainer, keeping
docs/source/changelog/andCHANGELOG.mdout of the diff, if the change is user-visible: N/A — centralisedWhat is the purpose of your pull request?
Tick the commit type your subject line carries.
fix— corrects a defectfeat— adds a featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingrelease— bumps the version or rolls up a distributionchore— anything elseAlso tick if it regenerates constant or registry tables, members keeping their numeric values (the
constlabel)Description of your pull request and other information
Closes #3202, taking the derive-from-source option.
ALIASESintests/project/test_docs_viewcode_builtins_1863_unit.pyis now read from the source: every module-level binding of a subscriptedTupleunderpcapkit, as(module, name)pairs, throughtests/_sources.py. It picks up the SCTP, DTLS and TLS reassemblyBufferIDs, plus SCTP'sMessageID, which also reportsbuiltins.AliasScanTestspins the scan: annotated and chained bindings found;TYPE_CHECKING, function and class bodies,typing.Tuple,Union, bare annotations and tuple unpacking left out; the four missed aliases found.origin/developexport withfollow_builtins_aliasnarrowed to develop's five modules, develop's module still passes (4 passed) and this one fails (5 failed, the four missed aliases named).-n 2: this module7 passedin the docs venv; roottests/*.py267 passed, 1 skipped;tests/protocols/*.py741 passed, 6 skipped;tests/project2435 passed, 94 skipped, 5 failed, the fivetest_conda_dev_release_gate_2458subtests, which fail the same on the untouched export.