Skip to content

Issue 8 in progress

username-removed-80646 requested to merge christianmlong/flake8:issue8 into master

I added warnings for cases where the --jobs option is given but is invalid.

  • running on Windows
  • the multiprocessing module is not available
  • the user passed the --diff option
  • the user wants to pull from stdin

I got the tests working on linux and windows, with two exceptions.

Look at test_windows_disables_jobs and test_stdin_disables_jobs in test_engine.py. They mock is_windows, and stdin, but they don't seem to mock --jobs. So, they are not issuing the warnings I expect them to issue.

I'm not sure how to add the --jobs option to those tests. Ideas?

Once I get those two tests working, I will add a --verbose flag, and hide the warnings behind it.

Merge request reports