Skip to content

Commit a9dd37f

Browse files
authored
Merge pull request #2980 from nicoddemus/immutable-fix-parameters
Add CHANGELOG entry about pytest.fixture "params" being now immutable
2 parents 4de433e + fdfc194 commit a9dd37f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CHANGELOG.rst

+8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ Deprecations and Removals
3838
with the boolean ``Node._skipped_by_mark``. (`#2767
3939
<https://github.com/pytest-dev/pytest/issues/2767>`_)
4040

41+
- The ``params`` list passed to ``pytest.fixture`` is now for
42+
all effects considered immutable and frozen at the moment of the ``pytest.fixture``
43+
call. Previously the list could be changed before the first invocation of the fixture
44+
allowing for a form of dynamic parametrization (for example, updated from command-line options),
45+
but this was an unwanted implementation detail which complicated the internals and prevented
46+
some internal cleanup. See issue `#2959 <https://github.com/pytest-dev/pytest/issues/2959>`_
47+
for details and a recommended workaround.
48+
4149
Features
4250
--------
4351

0 commit comments

Comments
 (0)