• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pytest-dev / pytest / 3866
51%

Build:
DEFAULT BRANCH: master
Ran 13 Dec 2017 10:01PM UTC
Jobs 1
Files 43
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3866

Pull #3030

travis-ci

web-flow
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
Pull Request #3030: Fix memory leak caused by fixture values never been garbage collected

3 of 3 new or added lines in 1 file covered. (100.0%)

8490 of 9170 relevant lines covered (92.58%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3866.1 (TOXENV=coveralls) 13 Dec 2017 10:01PM UTC 0
92.58
Travis Job 3866.1
Source Files on build 3866
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3866
  • Pull Request #3030
  • PR Base - master (#3862)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc