From 122cf60b2789487efec2b725f429eaa59baf3ea2 Mon Sep 17 00:00:00 2001 From: Victor Maryama Date: Sat, 12 Oct 2019 15:46:28 +0200 Subject: [PATCH] Always creating list for consistency. Co-Authored-By: Bruno Oliveira --- src/_pytest/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py index ed7e715de..7dc919235 100644 --- a/src/_pytest/fixtures.py +++ b/src/_pytest/fixtures.py @@ -1113,7 +1113,7 @@ def fixture( ``fixture_`` and then use ``@pytest.fixture(name='')``. """ - if params is not None and not isinstance(params, (list, tuple)): + if params is not None: params = list(params) fixture_function, arguments = _parse_fixture_args(