Skip to content

Commit

Permalink
Mark lazy-fixture tests xfail if pytest >= 8
Browse files Browse the repository at this point in the history
  • Loading branch information
delatrie committed Feb 14, 2024
1 parent 05386a2 commit d8bfde8
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
from allure_commons_test.container import has_container
from allure_commons_test.container import has_before

from packaging import version

pytestmark = pytest.mark.xfail(
version.parse(pytest.__version__) >= version.parse("8"),
reason=(
"Lazy-fixture is incompatible with pytest 8 "
"(see TvoroG/pytest-lazy-fixture#65)"
),
)


@pytest.fixture
def lazy_fixture_runner(allure_pytest_runner: AllurePytestRunner):
Expand Down

0 comments on commit d8bfde8

Please sign in to comment.