From 4cc02c1e7fef5adbc0db05642ba33f68c7e25cb7 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 17 Jul 2024 09:35:28 -0300 Subject: [PATCH] Update changelog/6962.bugfix.rst Co-authored-by: Ran Benita --- changelog/6962.bugfix.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog/6962.bugfix.rst b/changelog/6962.bugfix.rst index 9557d7b173e..030b6e06392 100644 --- a/changelog/6962.bugfix.rst +++ b/changelog/6962.bugfix.rst @@ -1 +1,2 @@ -Fixed bug where parametrized fixtures were not being cached correctly, being recreated every time. +Parametrization parameters are now compared using `==` instead of `is` (`is` is still used as a fallback if the parameter does not support `==`). +This fixes use of parameters such as lists, which have a different `id` but compare equal, causing fixtures to be re-computed instead of being cached.