We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeError
1 parent 303441b commit 8dbb401Copy full SHA for 8dbb401
pytest_cases/fixture_core1_unions.py
@@ -129,8 +129,10 @@ def is_fixture_union_params(params):
129
if is_marked_parameter_value(p0):
130
p0 = get_marked_parameter_values(p0)[0]
131
return isinstance(p0, UnionFixtureAlternative)
132
- except TypeError:
133
- raise InvalidParamsList(params)
+ except: # noqa
+ # be conservative
134
+ # an iterable or the like - we do not use such things when we cope with fixture_refs and unions
135
+ return False
136
137
138
def is_used_request(request):
pytest_cases/tests/cases/issues/test_issue_115.py
@@ -0,0 +1,11 @@
1
+import pytest
2
+
3
4
+def iterate():
5
+ for i in range(10):
6
+ yield i
7
8
9
+@pytest.mark.parametrize("idx", iterate())
10
+def test_fn(idx):
11
+ pass
0 commit comments