Skip to content

Commit cb1fbb6

Browse files
committed
Remove unnecessary safeguard for possible empty contexts copied from original implementation.
1 parent 3e962b5 commit cb1fbb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_bdd/scenario.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def collect_example_parametrizations(
310310

311311
example_marks = [getattr(pytest.mark, tag) for tag in tags]
312312

313-
for context in examples.as_contexts() or [{}]:
313+
for context in examples.as_contexts():
314314
param_id = "-".join(context.values())
315315
parametrizations.append(
316316
pytest.param(

0 commit comments

Comments
 (0)