Repository navigation
tests: fix pytest warnings - #7099
Merged
Merged
Conversation
|
Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7099 +/- ##
==========================================
+ Coverage 80.49% 80.69% +0.20%
==========================================
Files 149 149
Lines 21243 21241 -2
Branches 3281 3281
==========================================
+ Hits 17099 17140 +41
+ Misses 3315 3274 -41
+ Partials 829 827 -2
🚀 New features to boost your workflow:
|
snejus
force-pushed
the
drop-python-310-support
branch
from
October 20, 2026 06:14
35035ff to
722d865
Compare
snejus
force-pushed
the
fix-pytest-warnings
branch
from
October 20, 2026 06:14
1d00530 to
5dfab0b
Compare
snejus
force-pushed
the
drop-python-310-support
branch
from
October 21, 2026 17:47
722d865 to
e507549
Compare
snejus
force-pushed
the
fix-pytest-warnings
branch
from
October 21, 2026 17:48
5dfab0b to
413c6e0
Compare
snejus
force-pushed
the
drop-python-310-support
branch
from
October 21, 2026 18:03
e507549 to
b7ebf6d
Compare
snejus
force-pushed
the
fix-pytest-warnings
branch
from
October 21, 2026 18:03
413c6e0 to
e768c87
Compare
snejus
force-pushed
the
fix-pytest-warnings
branch
from
October 22, 2026 07:22
90e696c to
3f619e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on: #7093
Summary
Clears out the warnings the test suite emits under Python 3.14, so the output is readable again and real warnings stand out.
codecs.openremoved (beetsplug/edit.py:429,beetsplug/export.py:210) - deprecated since 3.11, plainopen()withencoding=is the drop-in replacement. Same intest/plugins/test_edit.py.@classmethodacross 8 test modules - pytest warns when ascope="class"fixture is defined as an instance method, since there is no per-test instance to bind to.self.Xreferences becomecls.X.test_bpd.pyfork handling - 3.14 defaults toforkserveron Linux, but the BPD server subprocess needs to inherit the parent's patchedgstplayerand mock state, so the start method is now forced toforkunconditionally. Underpytest-xdistthe parent is multi-threaded, which 3.14 warns about; ignored at module level with a comment explaining why it's safe here.asynciopolicy deprecations pinned insetup.cfg,pathlib.PurePath.as_uri()on the onetest_thumbnails.pytest that exercises it, and legacy string-field deprecations intest/autotag/test_hooks.pywhere the deprecated fields are the thing under test.