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

Hangs when running with gevent #20

Open
felixonmars opened this issue Nov 25, 2016 · 1 comment
Open

Hangs when running with gevent #20

felixonmars opened this issue Nov 25, 2016 · 1 comment

Comments

@felixonmars
Copy link

To reproduce, create a conftest.py with the following content:

from gevent import monkey
monkey.patch_all()

And run py.test --flake8 in that folder.

py.test itself runs fine, so does flake8, but pytest-flake8 hangs.

@felixonmars
Copy link
Author

After some investigation, this seems to be incompatibilities between gevent and multiprocessing that flake8 utilizes.

Adding a app.file_checker_manager.using_multiprocessing = False right after app.make_file_checker_manager() in pytest_flake8 fixes this for me.

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

No branches or pull requests

1 participant