Skip to content

Fix monkey patches for pathlib changes in Python 3.13#8619

Merged
bdraco merged 1 commit intoaio-libs:masterfrom
steverep:fix-tests-for-pathlib-kwargs
Aug 7, 2024
Merged

Fix monkey patches for pathlib changes in Python 3.13#8619
bdraco merged 1 commit intoaio-libs:masterfrom
steverep:fix-tests-for-pathlib-kwargs

Conversation

@steverep
Copy link
Copy Markdown
Member

@steverep steverep commented Aug 6, 2024

What do these changes do?

Just alters a couple of mocks to accept **kwargs. This makes them compatible with follow_symlinks added to is_file() and is_dir() in 3.13.

Are there changes in behavior for the user?

No

Is it a substantial burden for the maintainers to support this?

No

Related issue number

Fixes #8551

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES/ folder
    • name it <issue_or_pr_num>.<type>.rst (e.g. 588.bugfix.rst)

    • if you don't have an issue number, change it to the pull request
      number after creating the PR

      • .bugfix: A bug fix for something the maintainers deemed an
        improper undesired behavior that got corrected to match
        pre-agreed expectations.
      • .feature: A new behavior, public APIs. That sort of stuff.
      • .deprecation: A declaration of future API removals and breaking
        changes in behavior.
      • .breaking: When something public is removed in a breaking way.
        Could be deprecated in an earlier release.
      • .doc: Notable updates to the documentation structure or build
        process.
      • .packaging: Notes for downstreams about unobvious side effects
        and tooling. Changes in the test invocation considerations and
        runtime assumptions.
      • .contrib: Stuff that affects the contributor experience. e.g.
        Running tests, building the docs, setting up the development
        environment.
      • .misc: Changes that are hard to assign to any of the above
        categories.
    • Make sure to use full sentences with correct case and punctuation,
      for example:

      Fixed issue with non-ascii contents in doctest text files
      -- by :user:`contributor-gh-handle`.

      Use the past tense or the present tense a non-imperative mood,
      referring to what's changed compared to the last released version
      of this project.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Aug 6, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.70%. Comparing base (d4d3b83) to head (206b1bb).
Report is 858 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8619      +/-   ##
==========================================
- Coverage   97.70%   97.70%   -0.01%     
==========================================
  Files         107      107              
  Lines       33438    33439       +1     
  Branches     3927     3928       +1     
==========================================
  Hits        32672    32672              
  Misses        555      555              
- Partials      211      212       +1     
Flag Coverage Δ
CI-GHA 97.61% <100.00%> (-0.01%) ⬇️
OS-Linux 97.27% <100.00%> (-0.01%) ⬇️
OS-Windows 95.64% <100.00%> (-0.01%) ⬇️
OS-macOS 96.94% <100.00%> (-0.01%) ⬇️
Py-3.10.11 97.08% <100.00%> (+<0.01%) ⬆️
Py-3.10.14 97.02% <100.00%> (-0.01%) ⬇️
Py-3.11.9 97.25% <100.00%> (-0.01%) ⬇️
Py-3.12.4 97.38% <100.00%> (+<0.01%) ⬆️
Py-3.8.10 95.40% <100.00%> (-0.01%) ⬇️
Py-3.8.18 96.91% <100.00%> (-0.01%) ⬇️
Py-3.9.13 97.07% <100.00%> (-0.01%) ⬇️
Py-3.9.19 97.01% <100.00%> (-0.01%) ⬇️
Py-pypy7.3.16 96.59% <100.00%> (+<0.01%) ⬆️
VM-macos 96.94% <100.00%> (-0.01%) ⬇️
VM-ubuntu 97.27% <100.00%> (-0.01%) ⬇️
VM-windows 95.64% <100.00%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco added this to the 3.10.2 milestone Aug 7, 2024
@bdraco bdraco changed the title Fix monkey patches for pathlib changes in 3.13 Fix monkey patches for pathlib changes in Python 3.13 Aug 7, 2024
@bdraco bdraco merged commit d1c8dfb into aio-libs:master Aug 7, 2024
@patchback
Copy link
Copy Markdown
Contributor

patchback bot commented Aug 7, 2024

Backport to 3.10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.10/d1c8dfbb11ea9989446e295fcee350255d5461c0/pr-8619

Backported as #8623

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@patchback
Copy link
Copy Markdown
Contributor

patchback bot commented Aug 7, 2024

Backport to 3.11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.11/d1c8dfbb11ea9989446e295fcee350255d5461c0/pr-8619

Backported as #8624

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Aug 7, 2024
bdraco pushed a commit that referenced this pull request Aug 7, 2024
bdraco pushed a commit that referenced this pull request Aug 7, 2024
@steverep steverep deleted the fix-tests-for-pathlib-kwargs branch August 7, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python 3.13 test regression in 3.10.0rc0 (compared to b1)

2 participants