Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPT(TST): cache ds005 collection and return a clone upon invocation
Creating a collection apparently is more expensive. Clone() is needed since some tests do modification inplace. If they did not it was possible to declare this fixture as (scope="module"). So we need to return a clone each time. This causes full run time of 9 sec vs 30 sec. Disclaimer:there is still some nasty "inplace" changes happening probably or clone() being not sufficient. For me python -m pytest -s -v bids/analysis/tests/test_transformations.py::test_{filter,replace} causes test_replace to fail.
- Loading branch information