Skip to content
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

Some minor test tweaking #4568

Merged
merged 2 commits into from
Jul 7, 2024
Merged

Conversation

mwichmann
Copy link
Collaborator

Don't """code block""" % locals() if there's not actually a substitution in the code block. While there, fix any old-style file headers, and add a DefaultEnvironment call if not present.

One method in bin/scons-time.py didn't declare self so turned into a static method.

No doc impacts.

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 read the README.rst)
  • I have updated the appropriate documentation

Don't """code block""" % locals() if there's not actually a substitution
in the code block.  While there, fix any old-style file headers,
and add a DefaultEnvironment call if not present.

Signed-off-by: Mats Wichmann <[email protected]>
@mwichmann mwichmann added the testsuite Things that only affect the SCons testing. Do not use just because a PR has tests. label Jul 6, 2024
Apparently, the weird structor of the SConsTimer class is such that
the previous fix for the "makedict" method fails on older Pythons.
Just moved the "static method" outside the class to be a top-level
function, that seems to work better.

Signed-off-by: Mats Wichmann <[email protected]>
@bdbaddog bdbaddog merged commit 9bece9f into SCons:master Jul 7, 2024
9 of 10 checks passed
@mwichmann mwichmann deleted the maint/more-test-tweaks branch July 7, 2024 22:47
@mwichmann mwichmann added this to the 4.8 milestone Jul 7, 2024
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