diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2017-11-29 18:56:57 -0200 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2017-11-29 18:56:57 -0200 |
commit | fdfc1946da9dff75747d734c26b3602edfec1226 (patch) | |
tree | 13eecd076a03a91766946e5cc092819eb8f5d98d /CHANGELOG.rst | |
parent | 88ed1ab64857c42a2509ed1eea1bf3f13ebd797e (diff) | |
download | pytest-fdfc1946da9dff75747d734c26b3602edfec1226.tar.gz |
Add CHANGELOG entry about pytest.fixture "params" being now immutable
Fix #2959
Diffstat (limited to 'CHANGELOG.rst')
-rw-r--r-- | CHANGELOG.rst | 8 |
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 -------- |