Skip to content

Commit e2382e9

Browse files
committed
Minor cleanup in tests.
1 parent df46afc commit e2382e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

testing/python/fixtures.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4128,14 +4128,14 @@ def test_fixture_with_positionals(testdir):
41284128
with pytest.warns(pytest.PytestDeprecationWarning) as warnings:
41294129

41304130
@pytest.fixture("function", [0], True)
4131-
def arg(monkeypatch):
4132-
monkeypatch.setenv("AUTOUSE_WORKS", "1")
4131+
def fixture_with_positionals():
4132+
pass
41334133

41344134
assert str(warnings[0].message) == str(FIXTURE_POSITIONAL_ARGUMENTS)
41354135

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
41394139

41404140

41414141
def test_indirect_fixture_does_not_break_scope(testdir):

0 commit comments

Comments
 (0)