File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 1
1
"""Test tags."""
2
2
import textwrap
3
3
4
- import pkg_resources
5
4
import pytest
6
5
7
6
from pytest_bdd .parser import get_tags
@@ -235,14 +234,7 @@ def _():
235
234
scenarios('test.feature')
236
235
"""
237
236
)
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"
246
238
result = pytester .runpytest_subprocess (strict_option )
247
239
result .stdout .fnmatch_lines (["*= 2 passed * =*" ])
248
240
You can’t perform that action at this time.
0 commit comments