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

rerun-except option ignores teardown error #270

Open
9WooPWooP8 opened this issue Jun 26, 2024 · 0 comments
Open

rerun-except option ignores teardown error #270

9WooPWooP8 opened this issue Jun 26, 2024 · 0 comments

Comments

@9WooPWooP8
Copy link

Hello!

I have a problem, related to using rerun-except.
Scenario that causes the problem:

  • test run with --rerun-except SomeError
  • test uses function scoped fixture
  • error in test occures, for example: assert fail
  • teardown of function scoped fixture is triggered
  • SomeError is raised in the teardown
  • test reruns, even though SomeError was raised

Expected behaviour: test should fail without rerun

It seems to me that only the first raised error in test is taken in account when using --rerun-except?
Is there any way to fix it through configuration or is it a library issue?

@9WooPWooP8 9WooPWooP8 changed the title rerun-except option captures only first error of the test, ignoring teardown error rerun-except option ignores teardown error Jun 26, 2024
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

No branches or pull requests

1 participant