fixtures: move import of ParameterSet to top level

This gets typically used always (via `getfixtureinfo`).
This commit is contained in:
Daniel Hahler 2020-01-30 23:02:17 +01:00
parent eb5e651d7e
commit 2902c7263c
1 changed files with 1 additions and 2 deletions

View File

@ -31,6 +31,7 @@ from _pytest.compat import safe_getattr
from _pytest.compat import TYPE_CHECKING from _pytest.compat import TYPE_CHECKING
from _pytest.deprecated import FIXTURE_POSITIONAL_ARGUMENTS from _pytest.deprecated import FIXTURE_POSITIONAL_ARGUMENTS
from _pytest.deprecated import FUNCARGNAMES from _pytest.deprecated import FUNCARGNAMES
from _pytest.mark import ParameterSet
from _pytest.outcomes import fail from _pytest.outcomes import fail
from _pytest.outcomes import TEST_OUTCOME from _pytest.outcomes import TEST_OUTCOME
@ -1263,8 +1264,6 @@ class FixtureManager:
This things are done later as well when dealing with parametrization This things are done later as well when dealing with parametrization
so this could be improved so this could be improved
""" """
from _pytest.mark import ParameterSet
parametrize_argnames = [] parametrize_argnames = []
for marker in node.iter_markers(name="parametrize"): for marker in node.iter_markers(name="parametrize"):
if not marker.kwargs.get("indirect", False): if not marker.kwargs.get("indirect", False):