Skip to content

Commit cf17c1c

Browse files
committed
Remove warning suppression
1 parent 5be56e2 commit cf17c1c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/pytest_bdd/scenario.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
import logging
1818
import os
1919
import re
20-
import warnings
2120
from collections.abc import Iterable, Iterator
2221
from typing import TYPE_CHECKING, Any, Callable, TypeVar, cast
2322

2423
import pytest
2524
from _pytest.fixtures import FixtureDef, FixtureManager, FixtureRequest, call_fixture_func
26-
from pytest import PytestUnknownMarkWarning
2725
from typing_extensions import ParamSpec
2826

2927
from . import exceptions
@@ -310,9 +308,7 @@ def collect_example_parametrizations(
310308
for examples in templated_scenario.examples:
311309
tags: set = examples.tags or set()
312310

313-
with warnings.catch_warnings():
314-
warnings.filterwarnings("ignore", category=PytestUnknownMarkWarning)
315-
example_marks = [getattr(pytest.mark, tag) for tag in tags]
311+
example_marks = [getattr(pytest.mark, tag) for tag in tags]
316312

317313
for context in examples.as_contexts() or [{}]:
318314
param_id = "-".join(context.values())

0 commit comments

Comments
 (0)