invent a quick version of pytest autouse fixtures as pytest's unacceptably slow collection/high memory use in pytest 4.6.11, which is the highest version that works in py2k.
by "too-slow" we mean the test suite can't even manage to be collected for a single process in less than 70 seconds or so and memory use seems to be very high as well. for two or four workers the job just times out after ten minutes.
so instead we have invented a very limited form of these fixtures, as our current use of "autouse" fixtures are limited to those in fixtures.py.
assumptions for these fixtures:
When py2k support is removed and we can stay on a modern pytest version, this can all be removed.
Function | add_fixture |
Undocumented |
Function | run_class_fixture_setup |
Undocumented |
Function | run_class_fixture_teardown |
Undocumented |
Function | run_fn_fixture_setup |
Undocumented |
Function | run_fn_fixture_teardown |
Undocumented |
Function | scan_for_fixtures_to_use_for_class |
Undocumented |
Variable | _py2k_class_fixtures |
Undocumented |
Variable | _py2k_cls_fixture_stack |
Undocumented |
Variable | _py2k_fixture_fn_names |
Undocumented |
Variable | _py2k_fn_fixture_stack |
Undocumented |
Variable | _py2k_function_fixtures |
Undocumented |