Skip to content

Clean up test framework module docstrings#4833

Open
mwichmann wants to merge 1 commit intoSCons:masterfrom
mwichmann:testing-mod-docstrings
Open

Clean up test framework module docstrings#4833
mwichmann wants to merge 1 commit intoSCons:masterfrom
mwichmann:testing-mod-docstrings

Conversation

@mwichmann
Copy link
Collaborator

Also a couple of typing additions and docstring changes in TestSCons. No functional changes.

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt and RELEASE.txt (and read the README.rst).
  • I have updated the appropriate documentation

Also a couple of typing additions and docstring changes in TestSCons.
No functional changes.

Signed-off-by: Mats Wichmann <mats@linux.com>
@mwichmann mwichmann added the testsuite Things that only affect the SCons testing. Do not use just because a PR has tests. label Mar 2, 2026
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
# Python License: https://docs.python.org/3/license.html#psf-license
#
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure the question... that was there ("under the same terms as Python itself") and we haven't gotten it reclicensed to be under the same terms as the rest of SCons.

Copy link
Contributor

Choose a reason for hiding this comment

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

this bit

# This copy is vendored for the SCons project from a revision marked
# "TestCommon.py 1.3.D001 2010/06/03 12:58:27 knight"```

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

an attempt to explain that we've continued to change it, while it still has an old version string in it. Our current version isn't "1.3.D001", we couldn't even produce such a version from git... you can see those lines elsewhere in the two files.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can just remove those. My guess it was the old "__VERSION"... string which got populated and checked in when it shouldn't have.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

happy to remove. those two layers are made to seem as if they were developed indepenedently and just included in SCons as one of multiple projects that used it. If there ever were others I doubt they still are, so we could recast that whole tone - but I certainy wasn't going to presume that much.

Copy link
Contributor

Choose a reason for hiding this comment

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

If I had to guess.. some of this code originated with QMtest which was the original framework used. But I could wrong and this code is the result of removing the need to have QMtest..

@bdbaddog
Copy link
Contributor

bdbaddog commented Mar 9, 2026

Is it worth adding the subclass of subclass of? If we generate API docs via Sphinx won't it explain that automaticaly?

@mwichmann
Copy link
Collaborator Author

Is it worth adding the subclass of subclass of? If we generate API docs via Sphinx won't it explain that automaticaly?

maybe not worth it... but we don't currently produce API docs of testfw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testsuite Things that only affect the SCons testing. Do not use just because a PR has tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants