| |
@@ -1,40 +0,0 @@
|
| |
- From 265188b73d59eeb852a1d118b2881d5450eae61e Mon Sep 17 00:00:00 2001
|
| |
- From: Alessio Bogon <778703+youtux@users.noreply.github.com>
|
| |
- Date: Sat, 12 Nov 2022 15:53:38 +0100
|
| |
- Subject: [PATCH] Remove logic for old unsupported pytest
|
| |
-
|
| |
- ---
|
| |
- tests/feature/test_tags.py | 10 +---------
|
| |
- 1 file changed, 1 insertion(+), 9 deletions(-)
|
| |
-
|
| |
- diff --git a/tests/feature/test_tags.py b/tests/feature/test_tags.py
|
| |
- index 810dd00..395a6b6 100644
|
| |
- --- a/tests/feature/test_tags.py
|
| |
- +++ b/tests/feature/test_tags.py
|
| |
- @@ -1,7 +1,6 @@
|
| |
- """Test tags."""
|
| |
- import textwrap
|
| |
-
|
| |
- -import pkg_resources
|
| |
- import pytest
|
| |
-
|
| |
- from pytest_bdd.parser import get_tags
|
| |
- @@ -235,14 +234,7 @@ def test_at_in_scenario(pytester):
|
| |
- 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 * =*"])
|
| |
-
|
| |
- --
|
| |
- 2.39.2
|
| |
-
|
| |
Announced on the
devel
list; merge and build no earlier than 2023-11-03.https://github.com/pytest-dev/pytest-bdd/compare/6.1.1...7.0.0