File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1270,14 +1270,13 @@ def parametrize(
1270
1270
if _param_mark and _param_mark ._param_ids_from and generated_ids is None :
1271
1271
object .__setattr__ (_param_mark ._param_ids_from , "_param_ids_generated" , ids )
1272
1272
1273
- # Add funcargs as fixturedefs to fixtureinfo. arg2fixturedefs by registering
1274
- # artificial "pseudo" FixtureDef's so that later at test execution time we can
1275
- # rely on a proper FixtureDef to exist for fixture setup .
1273
+ # Add direct parametrizations as fixturedefs to arg2fixturedefs by
1274
+ # registering artificial "pseudo" FixtureDef's such that later at test
1275
+ # setup time we can rely on FixtureDefs to exist for all argnames .
1276
1276
node = None
1277
- # If we have a scope that is higher than function, we need
1278
- # to make sure we only ever create an according fixturedef on
1279
- # a per-scope basis. We thus store and cache the fixturedef on the
1280
- # node related to the scope.
1277
+ # For scopes higher than function, a "pseudo" FixtureDef might have
1278
+ # already been created for the scope. We thus store and cache the
1279
+ # FixtureDef on the node related to the scope.
1281
1280
if scope_ is not Scope .Function :
1282
1281
collector = self .definition .parent
1283
1282
assert collector is not None
You can’t perform that action at this time.
0 commit comments