Skip to content

rerun-except option ignores teardown error #270

@9WooPWooP8

Description

@9WooPWooP8

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions