summaryrefslogtreecommitdiff
path: root/CHANGELOG.rst
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2017-11-29 18:56:57 -0200
committerBruno Oliveira <nicoddemus@gmail.com>2017-11-29 18:56:57 -0200
commitfdfc1946da9dff75747d734c26b3602edfec1226 (patch)
tree13eecd076a03a91766946e5cc092819eb8f5d98d /CHANGELOG.rst
parent88ed1ab64857c42a2509ed1eea1bf3f13ebd797e (diff)
downloadpytest-fdfc1946da9dff75747d734c26b3602edfec1226.tar.gz
Add CHANGELOG entry about pytest.fixture "params" being now immutable
Fix #2959
Diffstat (limited to 'CHANGELOG.rst')
-rw-r--r--CHANGELOG.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 2c3f5ff9c..7e7bfaf04 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -38,6 +38,14 @@ Deprecations and Removals
with the boolean ``Node._skipped_by_mark``. (`#2767
<https://github.com/pytest-dev/pytest/issues/2767>`_)
+- The ``params`` list passed to ``pytest.fixture`` is now for
+ all effects considered immutable and frozen at the moment of the ``pytest.fixture``
+ call. Previously the list could be changed before the first invocation of the fixture
+ allowing for a form of dynamic parametrization (for example, updated from command-line options),
+ but this was an unwanted implementation detail which complicated the internals and prevented
+ some internal cleanup. See issue `#2959 <https://github.com/pytest-dev/pytest/issues/2959>`_
+ for details and a recommended workaround.
+
Features
--------