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

fix: Address deprecation warning in shutil.rmtree(onerror=...) #1401

Merged

Conversation

edgarrmondragon
Copy link
Contributor

@edgarrmondragon edgarrmondragon commented Nov 11, 2023

Closes #1402

@edgarrmondragon edgarrmondragon changed the title fix: Address deprecation warning in rmtree(onerror=...) fix: Address deprecation warning in shutil.rmtree(onerror=...) Nov 11, 2023
@edgarrmondragon edgarrmondragon marked this pull request as ready for review November 11, 2023 04:49
@edgarrmondragon edgarrmondragon force-pushed the fix/rmtree-onerror-deprecation-warning branch 2 times, most recently from 280c5e2 to 97e136d Compare November 11, 2023 05:06
@edgarrmondragon edgarrmondragon force-pushed the fix/rmtree-onerror-deprecation-warning branch from 97e136d to ba65802 Compare November 11, 2023 06:16
Copy link

codecov bot commented Nov 11, 2023

Codecov Report

Merging #1401 (e407089) into master (5827d6a) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1401   +/-   ##
=======================================
  Coverage   97.44%   97.44%           
=======================================
  Files          48       48           
  Lines        4423     4426    +3     
=======================================
+ Hits         4310     4313    +3     
  Misses        113      113           
Flag Coverage Δ
unittests 97.44% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
copier/template.py 96.49% <100.00%> (+0.04%) ⬆️
copier/tools.py 96.25% <100.00%> (ø)

Copy link
Member

@sisp sisp left a comment

Choose a reason for hiding this comment

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

Thanks for catching this warning and submitting a PR, @edgarrmondragon! 🙏

LGTM! 🎉 Very similar to, e.g., pytest-dev/pytest#10893. 👍

@sisp sisp enabled auto-merge (squash) November 11, 2023 08:09
@sisp sisp merged commit 43aa5ed into copier-org:master Nov 11, 2023
20 checks passed
@edgarrmondragon edgarrmondragon deleted the fix/rmtree-onerror-deprecation-warning branch November 11, 2023 08:12
@edgarrmondragon
Copy link
Contributor Author

Thanks for the quick review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uses deprecated onerror parameter of shutil.rmtree in Python >= 3.12
2 participants