mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
upgrade pyflakes / pycodestyle
This commit is contained in:
parent
23e4005c55
commit
4941a3e32e
3 changed files with 8 additions and 5 deletions
|
|
@ -41,9 +41,11 @@ def test_oserrors_are_reraised():
|
|||
err = OSError(errno.EAGAIN, "Ominous message")
|
||||
with mock.patch("_multiprocessing.SemLock", side_effect=err):
|
||||
manager = _parallel_checker_manager()
|
||||
with mock.patch.object(manager, "run_serial") as serial:
|
||||
with pytest.raises(OSError):
|
||||
manager.run()
|
||||
with (
|
||||
mock.patch.object(manager, "run_serial") as serial,
|
||||
pytest.raises(OSError),
|
||||
):
|
||||
manager.run()
|
||||
assert serial.call_count == 0
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue