From fdfc1946da9dff75747d734c26b3602edfec1226 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 29 Nov 2017 18:56:57 -0200 Subject: [PATCH] Add CHANGELOG entry about pytest.fixture "params" being now immutable Fix #2959 --- CHANGELOG.rst | 8 ++++++++ 1 file changed, 8 insertions(+) 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 `_) +- 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 `_ + for details and a recommended workaround. + Features --------