test_ok2/changelog
Bruno Oliveira c3f63ac143 Fix memory leak caused by fixture values never been garbage collected
The leak was caused by the (unused) `FixtureRequest._fixture_values`
cache.

This was introduced because the `partial` object (created to call
FixtureDef.finish() bound with the Request) is kept alive
through the entire session when a function-scoped fixture depends
on a session-scoped (or higher) fixture because of the nested
`addfinalizer` calls.

FixtureDef.finish() started receiving a request object in order to
obtain the proper hook proxy object (#2127), but this does not seem
useful at all in practice because `pytest_fixture_post_finalizer`
will be called with the `request` object of the moment the fixture value
was *created*, not the request object active when the fixture value
is being destroyed. We should probably deprecate/remove the request
parameter from `pytest_fixture_post_finalizer`.

Fix #2981
2017-12-13 19:49:06 -02:00
..
2981.bugfix Fix memory leak caused by fixture values never been garbage collected 2017-12-13 19:49:06 -02:00
2985.bugfix Fix issue 2985. 2017-12-07 15:12:44 +00:00
2995.bugfix Small formatting to CHANGELOG 2017-12-13 06:52:37 -02:00
3015.trivial add changelog entry 2017-12-09 13:34:58 +01:00
3018.trivial Add changelog for 3018 2017-12-11 17:40:35 -02:00
3021.trivial Fix changelog formatting 2017-12-13 06:58:07 -02:00
_template.rst Show multiple issue links in CHANGELOG entries 2017-07-26 10:58:06 -07:00