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

All tests return "success" when they are successful #579

Merged
merged 5 commits into from
Jul 12, 2023

Conversation

seifertm
Copy link
Contributor

Previously, there have been some tests that try to assert compatibility with pytest.mark.xfail or pytest.skip. Those tests reported "xfailed" or "skipped" in the test suite.

This creates extra work for downstream packagers of pytest-asyncio if they want to run the unit test suite as part of the installation process.

This MR changes the tests to return "success" when they are successful. More specifically, the tests were changed to run inside Pytester.

The test suite was also extended to test the corresponding behaviors in auto mode.
One unnecessary test case was removed.

@seifertm seifertm requested review from asvetlov and Tinche as code owners July 12, 2023 09:08
seifertm added 5 commits July 12, 2023 12:02
…orts success rather than "xfailed" when the test succeeded.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
…k.xfail in auto mode.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
…rts success rather than "skipped" when the test succeeds.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
…p in auto mode.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
The test simply asserts that the event loop can be closed inside a test. Given that the event_loop fixture returns a regular event loop, this test case simply tests standard-library behavior and is not needed for pytest-asyncio.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
@seifertm seifertm force-pushed the no-non-successful-tests branch from 6879238 to 9eae85a Compare July 12, 2023 10:02
@seifertm seifertm enabled auto-merge (rebase) July 12, 2023 10:03
@seifertm seifertm merged commit af08b1c into pytest-dev:main Jul 12, 2023
@seifertm seifertm deleted the no-non-successful-tests branch October 23, 2023 06:15
@seifertm seifertm restored the no-non-successful-tests branch October 23, 2023 08:17
@seifertm seifertm deleted the no-non-successful-tests branch October 23, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant