Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions tests/feature/test_tags.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Test tags."""
import textwrap

import pkg_resources
import pytest

from pytest_bdd.parser import get_tags
Expand Down Expand Up @@ -235,14 +234,7 @@ def _():
scenarios('test.feature')
"""
)

# Deprecate --strict after pytest 6.1
# https://docs.pytest.org/en/stable/deprecations.html#the-strict-command-line-option
pytest_version = pkg_resources.get_distribution("pytest").parsed_version
if pytest_version >= pkg_resources.parse_version("6.2"):
strict_option = "--strict-markers"
else:
strict_option = "--strict"
strict_option = "--strict-markers"
result = pytester.runpytest_subprocess(strict_option)
result.stdout.fnmatch_lines(["*= 2 passed * =*"])

Expand Down