2020-02-14 19:54:47 +08:00
|
|
|
The ``cached_result`` attribute of ``FixtureDef`` is now set to ``None`` when
|
|
|
|
the result is unavailable, instead of being deleted.
|
|
|
|
|
2020-02-15 02:49:08 +08:00
|
|
|
If your plugin performs checks like ``hasattr(fixturedef, 'cached_result')``,
|
2020-02-14 19:54:47 +08:00
|
|
|
for example in a ``pytest_fixture_post_finalizer`` hook implementation, replace
|
|
|
|
it with ``fixturedef.cached_result is not None``. If you ``del`` the attribute,
|
|
|
|
set it to ``None`` instead.
|