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.

…orts success rather than "xfailed" when the test succeeded.

Signed-off-by: Michael Seifert <[email protected]>
…rts success rather than "skipped" when the test succeeds.

Signed-off-by: Michael Seifert <[email protected]>
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 <[email protected]>
@seifertm seifertm enabled auto-merge (rebase) July 12, 2023 10:03
@seifertm seifertm merged commit af08b1c into pytest-dev:main Jul 12, 2023
9 checks passed
@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