Skip to content

Commit 86c471a

Browse files
committed
Remove ancient pytest compatibility
1 parent 635dd3f commit 86c471a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pytest_bdd/steps.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def given_beautiful_article(article):
4141

4242
from .types import GIVEN, WHEN, THEN
4343
from .parsers import get_parser
44-
from .utils import get_args, get_caller_module_locals
44+
from .utils import get_caller_module_locals
4545

4646

4747
def get_step_fixture_name(name, type_):
@@ -151,9 +151,6 @@ def inject_fixture(request, arg, value):
151151
"params": None,
152152
}
153153

154-
if "yieldctx" in get_args(FixtureDef.__init__):
155-
fd_kwargs["yieldctx"] = False
156-
157154
fd = FixtureDef(**fd_kwargs)
158155
fd.cached_result = (value, 0, None)
159156

0 commit comments

Comments
 (0)