Skip to content

Conversation

@mwichmann
Copy link
Collaborator

Tests were failing on Python 3.15alpha due to a deprecation warning for the profile module.

This is a test-only change.

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

Tests were failing on Python 3.15alpha due to a deprecation warning
for the profile module.

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 Oct 17, 2025
import cProfile
try: dispatch = profile.Profile.dispatch
try: dispatch = cProfile.Profile.dispatch
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this necessary any more? isn't it now guaranteed to be present?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no idea, I just renamed to solve the existing problem.

Spelunking: trace_dispatch_return is not a documented method of the Profile class, though it's present. And dispatch does not seem to exist even in the pure-python profile, so I guess we just get the pass every time. Just drop that stanza?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd remove it and let CI try on many versions and see what happens?

@bdbaddog bdbaddog merged commit c9d2433 into SCons:master Oct 17, 2025
9 of 11 checks passed
@mwichmann mwichmann added this to 4.10.1 Oct 17, 2025
@mwichmann mwichmann moved this to Done in 4.10.1 Oct 17, 2025
@mwichmann mwichmann added this to the NextRelease milestone Oct 17, 2025
@mwichmann mwichmann deleted the maint/cprofile branch October 17, 2025 21:41
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

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants