Skip to content

Commit 0ec8b7e

Browse files
authored
Merge pull request #580 from pytest-dev/remove-usage-pkg_resources
Remove logic for old unsupported pytest
2 parents d3e8407 + 5d8eda3 commit 0ec8b7e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/feature/test_tags.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Test tags."""
22
import textwrap
33

4-
import pkg_resources
54
import pytest
65

76
from pytest_bdd.parser import get_tags
@@ -235,14 +234,7 @@ def _():
235234
scenarios('test.feature')
236235
"""
237236
)
238-
239-
# Deprecate --strict after pytest 6.1
240-
# https://docs.pytest.org/en/stable/deprecations.html#the-strict-command-line-option
241-
pytest_version = pkg_resources.get_distribution("pytest").parsed_version
242-
if pytest_version >= pkg_resources.parse_version("6.2"):
243-
strict_option = "--strict-markers"
244-
else:
245-
strict_option = "--strict"
237+
strict_option = "--strict-markers"
246238
result = pytester.runpytest_subprocess(strict_option)
247239
result.stdout.fnmatch_lines(["*= 2 passed * =*"])
248240

0 commit comments

Comments
 (0)