Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest-flake8 is very slow and uses lots of RAM with -vv #19

Open
stevenh opened this issue Nov 24, 2016 · 2 comments
Open

pytest-flake8 is very slow and uses lots of RAM with -vv #19

stevenh opened this issue Nov 24, 2016 · 2 comments
Labels

Comments

@stevenh
Copy link

stevenh commented Nov 24, 2016

If you run py.test with --flake8 and -vv then the tests run very slowly and it also uses a huge amount of RAM.

This is caused by flake8's extreme amount of debug sent stderr when run with -vv, which is in turn captured by py.test.

A workaround is to set -vv via addopts config which isn't detected by flake8 but still applies to py.test.

In testing with just 8 files this reduced the time to run from 16 seconds to just 1.

@tholo
Copy link
Owner

tholo commented Oct 23, 2017

Are you sure this is not due to you perhaps having a .tox folder with (several?) full Python libraries it iterates into? If it is you might want to add .tox to your ignores so it does not descend into it at all...?

@tholo tholo added the question label Oct 24, 2017
@gugu
Copy link

gugu commented Jan 8, 2018

Have the same problem, no .tox in the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants