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

scons-time: add filter to tarfile extract call. #4527

Merged
merged 1 commit into from
May 15, 2024

Conversation

mwichmann
Copy link
Collaborator

Python 3.13.0b1 added a warning when the extraction filter is not specified. The filter argument (to extract() and extractall()) was added in 3.12, but with no noise. Once the warning was added, the scons-time tests began to fail - this is a continuation of the work Red Hat did for RHEL 8 and RHEL 9 starting with Python 3.9. Supplying the filter quiets the warning, which also worked for the RHEL case.

The tarfile and zipfile usage now uses a context manager (both objects can be used this way since Python 3.2 or so).

This has no visible effects - scons-time is only used during testing. Not added to release note as bin/scons-time.py is not part of the released SCons wheel.

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

Python 3.13.0b1 added a warning when the extraction filter is
not specified.  The filter aregument (to extract() and extractall())
was added in 3.12, but with no noise. Once the warning was added, the
scons-time tests began to fail - this is a continuation of the work Red
Hat did for RHEL 8 and RHEL 9 starting with Python 3.9.  Supplying the
filter quiets the warning, which also worked for the RHEL case.

The tarfile and zipfile usage now uses a context manager (both
objects can be used this way since Python 3.2 or so).

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 May 13, 2024
@bdbaddog bdbaddog merged commit c33bb1a into SCons:master May 15, 2024
6 of 7 checks passed
@mwichmann mwichmann added this to the 4.8 milestone May 15, 2024
@mwichmann mwichmann deleted the tarfile-mod branch May 15, 2024 14:57
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