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

[PR #3955/8960063e backport][3.10] Replace all tmpdir fixtures with tmp_path (#3551) #8075

Conversation

webknjaz
Copy link
Member

This is a backport of PR #3955 as merged into master (8960063).

tmp_path is the replacement fixture in pytest for tmpdir; tmp_path
uses the builtin pathlib.Path class. As it says on the tin, this
commit replaces every instance of tmpdir in the test suite with
tmp_path. Aside from s/tmpdir/tmp_path/ this also required changing
instances of tmpdir.join(foo) to tmp_path / foo.

This is intended to comprehensively address and close #3551, and
should have no side effects. This does not affect end users.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Jan 28, 2024
)

tmp_path is the replacement fixture in pytest for tmpdir; tmp_path
uses the builtin pathlib.Path class. As it says on the tin, this
commit replaces every instance of tmpdir in the test suite with
tmp_path. Aside from s/tmpdir/tmp_path/ this also required changing
instances of `tmpdir.join(foo)` to `tmp_path / foo`.

This is intended to comprehensively address aio-libs#3551 and should have
no side effects.

(cherry picked from commit 8960063)
@webknjaz webknjaz force-pushed the patchback/backports/3.10/8960063ef4137d6c547a687a45ed55b943e9b8d1/pr-3955 branch from 0f3d4d3 to 01a386c Compare January 28, 2024 17:03
Copy link

codecov bot commented Jan 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d445803) 97.39% compared to head (01a386c) 97.30%.
Report is 1 commits behind head on 3.10.

Additional details and impacted files
@@            Coverage Diff             @@
##             3.10    #8075      +/-   ##
==========================================
- Coverage   97.39%   97.30%   -0.09%     
==========================================
  Files         108      108              
  Lines       32812    32887      +75     
  Branches     3904     3927      +23     
==========================================
+ Hits        31957    32002      +45     
- Misses        650      675      +25     
- Partials      205      210       +5     
Flag Coverage Δ
CI-GHA 97.22% <100.00%> (-0.09%) ⬇️
OS-Linux 96.91% <100.00%> (-0.09%) ⬇️
OS-Windows 94.43% <100.00%> (-0.09%) ⬇️
OS-macOS 96.73% <100.00%> (-0.08%) ⬇️
Py-3.10.11 94.33% <100.00%> (-0.09%) ⬇️
Py-3.10.13 96.69% <100.00%> (-0.08%) ⬇️
Py-3.11.7 96.39% <100.00%> (-0.05%) ⬇️
Py-3.12.1 ?
Py-3.8.10 94.31% <100.00%> (-0.09%) ⬇️
Py-3.8.18 96.62% <100.00%> (-0.09%) ⬇️
Py-3.9.13 94.32% <100.00%> (-0.09%) ⬇️
Py-3.9.18 96.67% <100.00%> (-0.09%) ⬇️
Py-pypy7.3.15 96.22% <100.00%> (-0.09%) ⬇️
VM-macos 96.73% <100.00%> (-0.08%) ⬇️
VM-ubuntu 96.91% <100.00%> (-0.09%) ⬇️
VM-windows 94.43% <100.00%> (-0.09%) ⬇️

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.

@webknjaz webknjaz merged commit bb59070 into aio-libs:3.10 Jan 28, 2024
22 of 26 checks passed
@webknjaz webknjaz deleted the patchback/backports/3.10/8960063ef4137d6c547a687a45ed55b943e9b8d1/pr-3955 branch April 19, 2024 21:56
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.

None yet

2 participants