File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4128,14 +4128,14 @@ def test_fixture_with_positionals(testdir):
4128
4128
with pytest .warns (pytest .PytestDeprecationWarning ) as warnings :
4129
4129
4130
4130
@pytest .fixture ("function" , [0 ], True )
4131
- def arg ( monkeypatch ):
4132
- monkeypatch . setenv ( "AUTOUSE_WORKS" , "1" )
4131
+ def fixture_with_positionals ( ):
4132
+ pass
4133
4133
4134
4134
assert str (warnings [0 ].message ) == str (FIXTURE_POSITIONAL_ARGUMENTS )
4135
4135
4136
- assert arg ._pytestfixturefunction .scope == "function"
4137
- assert arg ._pytestfixturefunction .params == (0 ,)
4138
- assert arg ._pytestfixturefunction .autouse
4136
+ assert fixture_with_positionals ._pytestfixturefunction .scope == "function"
4137
+ assert fixture_with_positionals ._pytestfixturefunction .params == (0 ,)
4138
+ assert fixture_with_positionals ._pytestfixturefunction .autouse
4139
4139
4140
4140
4141
4141
def test_indirect_fixture_does_not_break_scope (testdir ):
You can’t perform that action at this time.
0 commit comments