Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prepare for Pytest v8#27624

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
QuLogic merged 4 commits intomatplotlib:mainfromksunden:pytest8
Jan 17, 2024
Merged

Prepare for Pytest v8#27624

QuLogic merged 4 commits intomatplotlib:mainfromksunden:pytest8
Jan 17, 2024

Conversation

ksunden
Copy link
Member

PR summary

The behavior of pytest.warns has changed, particularly with regards to handling of additional warnings

When additional warnings that were not tested for are raised, I simply add afilterwarnings (some are artifacts ofwith blocks).

And there are a couple that seem are not actually currently warning at all, but had been occluded by apytest.errors.

PR checklist

The behavior of pytest.warns has changed, particularly with regards to handling of additional warnings
@dstansby
Copy link
Member

Is any the CI for this PR running with pytest 8 to check that these fixes do indeed work? Or should I install pytest 8 locally to check?

@ksunden
Copy link
MemberAuthor

Looks like I need to figure out a way of fixing one particular test so that it works in both pytest 7 and 8...

I did indeed just installpip install -U --pre pytest to test locally. I think the scheduled prerelease ci run may catch it, but I don't think we have that set up to run on PR via a label like we do for some other CI runs.

@ksunden
Copy link
MemberAuthor

Yeah, that particular test raises 2 separate warnings on the same line of code, pytest 7 swallows the outer one and so you get "did not warn", pytest 8 passes it through, so if youdon't have both it gets raised... I think I just need to filter the deprecation warning here as it is already tested earlier in the test.

Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
@tacaswelltacaswell added this to thev3.8.3 milestoneJan 16, 2024
@QuLogicQuLogic merged commited41aea intomatplotlib:mainJan 17, 2024
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestJan 17, 2024
rcomer added a commit that referenced this pull requestJan 17, 2024
…624-on-v3.8.xBackport PR#27624 on branch v3.8.x (Prepare for Pytest v8)
@ksundenksunden mentioned this pull requestFeb 14, 2024
1 task
QuLogic added a commit to QuLogic/matplotlib that referenced this pull requestFeb 15, 2024
Prepare for Pytest v8(cherry picked from commited41aea)
@QuLogicQuLogic modified the milestones:v3.8.3,v3.7.5Feb 15, 2024
QuLogic added a commit to QuLogic/matplotlib that referenced this pull requestFeb 15, 2024
Prepare for Pytest v8(cherry picked from commited41aea)Co-authored-by: Kyle Sunden <git@ksunden.space>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@QuLogicQuLogicQuLogic approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.7.5
Development

Successfully merging this pull request may close these issues.

4 participants
@ksunden@dstansby@tacaswell@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp