test_ok1/testing
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
..
code remove _ast reference from test cases as well 2017-12-11 23:24:47 +05:30
freeze Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
logging Fix additional linting issues 2017-10-24 21:01:00 -02:00
python Implement progress percentage reporting while running tests 2017-11-21 21:01:41 -02:00
acceptance_test.py Fix memory leak caused by fixture values never been garbage collected 2017-12-13 19:49:06 -02:00
deprecated_test.py Also blacklist pytest-capturelog plugin 2017-12-05 20:02:56 +01:00
test_argcomplete.py Fix crash in FastFilesCompleter with no prefix 2017-09-08 00:14:56 +10:00
test_assertion.py Merge remote-tracking branch 'upstream/features' 2017-11-27 19:37:58 -02:00
test_assertrewrite.py Respect PYTEST_DONT_REWRITE for plugins too. 2017-12-12 17:43:17 -08:00
test_cache.py Use new hook to report accurate tests skipped in --lf and --ff 2017-07-28 08:54:55 -03:00
test_capture.py Implement progress percentage reporting while running tests 2017-11-21 21:01:41 -02:00
test_collection.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_compat.py `compat.safe_getattr` now catches OutcomeExceptions too 2017-08-23 17:17:03 +03:00
test_config.py Improve test that blocks setuptools plugins from being loaded 2017-11-28 21:29:58 -02:00
test_conftest.py simplify test_conftest_found_with_double_dash() test code 2017-12-11 15:10:04 +01:00
test_doctest.py Merge upstream/master into features 2017-11-03 16:37:18 -02:00
test_entry_points.py Add __future__ imports to all pytest modules 2017-03-16 22:45:40 -03:00
test_helpconfig.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_junitxml.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_mark.py Revert making TerminalWriter public in TerminalReporter plugin 2017-11-23 19:53:12 -02:00
test_modimport.py add a comment explaining the modimport tests 2017-03-28 11:45:06 +02:00
test_monkeypatch.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_nodes.py Address more review comments, fix massive bug I reintroduced in the node-splitting code :-/ 2017-10-23 17:49:49 +01:00
test_nose.py Fix linting E741: ambiguous variable name 2017-11-04 13:59:10 -02:00
test_parseopt.py Remove code for unsupported Python versions 2017-10-10 08:54:56 +03:00
test_pastebin.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_pdb.py simplify test_pdb_collection_failure_is_shown test data setup code 2017-12-09 13:34:56 +01:00
test_pluginmanager.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_pytester.py fix test name typo 2017-12-09 13:34:58 +01:00
test_recwarn.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_resultlog.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_runner.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_runner_xunit.py Fix linting E741: ambiguous variable name 2017-11-04 13:59:10 -02:00
test_session.py Fix linting E741: ambiguous variable name 2017-11-04 13:59:10 -02:00
test_skipping.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_terminal.py Add test for #2971 2017-11-28 22:42:52 -02:00
test_tmpdir.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_unittest.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_warnings.py Only escape str-like arguments passed to warnings 2017-11-27 23:17:15 -02:00