Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python.pkgs.pytest: setupHook to prevent creation of .pytest-cache fo…
…lder, fixes #40273 When `py.test` was run with a folder as argument, it would not only search for tests in that folder, but also create a .pytest-cache folder. Not only is this state we don't want, but it was also causing collisions.
- Loading branch information
610485f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FRidh I think this causes
python.pkgs.pytestflakes
to fail to build (found out usinggit bisect
):610485f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a hunch it was caused by this. I want to keep the hook because it is important, but we should see if we can find a solution for this package. We can
export PYTEST_ADDOPTS=""
for this package. We just need to remove the.pytest-cache
ourselves then.610485f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never heard of
PYTEST_ADDOPTS
. If you know how to fix this, please do so.Btw, this also breaks
pytest-flake8
.610485f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same goes for
pydocstyle
.610485f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works better
FRidh@4b14e27