Skip to content

Commit b35193a

Browse files
scope too
1 parent a0ee5c2 commit b35193a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

testing/python/metafunc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ def test_parametrize_scope_overrides(
14441444
def pytest_generate_tests(metafunc):
14451445
if "arg" in metafunc.fixturenames:
14461446
metafunc.parametrize("arg", [1,2], indirect=True,
1447-
scope=%r)
1447+
scope={scope!r})
14481448
@pytest.fixture
14491449
def arg(request):
14501450
values.append(request.param)
@@ -1456,7 +1456,6 @@ def test_world(arg):
14561456
def test_checklength():
14571457
assert len(values) == {length}
14581458
"""
1459-
% scope
14601459
)
14611460
reprec = pytester.inline_run()
14621461
reprec.assertoutcome(passed=5)

0 commit comments

Comments
 (0)