mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
Diable multiprocessing behaviour on Windows
Due to https://bugs.python.org/issue27649, we cannot continue to expect multiprocessing to work as we expect and document it on Windows. As such, we are going to revert back to our previous behaviour of disabling it across all versions of Python on Windows to provide the default expected behaviour of Flake8 on that Operating System.
This commit is contained in:
parent
530767d36d
commit
429d8a196e
4 changed files with 21 additions and 3 deletions
|
|
@ -25,7 +25,8 @@ def test_oserrors_cause_serial_fall_back():
|
|||
assert manager.using_multiprocessing is False
|
||||
|
||||
|
||||
def test_oserrors_are_reraised():
|
||||
@mock.patch('flake8.utils.is_windows', return_value=False)
|
||||
def test_oserrors_are_reraised(is_windows):
|
||||
"""Verify that OSErrors will cause the Manager to fallback to serial."""
|
||||
err = OSError(errno.EAGAIN, 'Ominous message')
|
||||
style_guide = style_guide_mock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue