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

test that mark.asyncio scope is respected#770

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

Draft
minrk wants to merge1 commit intopytest-dev:main
base:main
Choose a base branch
Loading
fromminrk:fail-module-scope

Conversation

@minrk
Copy link
Contributor

test case for tangential issue discovered trying toprovide an example use case for#706.

When a function-scoped async fixture is used,@pytest.mark.asyncio(scope="module") on tests is ignored. Notably, when the function-scoped fixture is used inany test, thescope="module" is ignored. Sotest_module_loop passes if it is the only test, but if either of the other two tests are enabled,test_module_loop will fail without modification.test_module_loop_function_fixture always fails.

Draft because this only adds a failing test. I don't think I have the expertise to actually fix the behavior, but hopefully the test case can help someone make sure it's fixed.

it is not, if there is a function-scoped fixture included
@seifertm
Copy link
Contributor

Thanks for the example! I haven't looked at it in detail, yet, but it could be related to#868 .

minrk reacted with thumbs up emoji

@seifertmseifertm added this to thev0.24 milestoneJul 13, 2024
@seifertmseifertm modified the milestones:v0.24,v1.0Aug 22, 2024
@seifertmseifertm modified the milestones:v1.0,v1.1May 26, 2025
@seifertmseifertm removed this from thev1.1 milestoneSep 12, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@asvetlovasvetlovAwaiting requested review from asvetlovasvetlov will be requested when the pull request is marked ready for reviewasvetlov is a code owner

@seifertmseifertmAwaiting requested review from seifertmseifertm will be requested when the pull request is marked ready for reviewseifertm is a code owner

@TincheTincheAwaiting requested review from TincheTinche will be requested when the pull request is marked ready for reviewTinche is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@minrk@seifertm

[8]ページ先頭

©2009-2025 Movatter.jp