upgrade pyflakes / pycodestyle

This commit is contained in:
anthony sottile 2025-06-20 15:15:53 -04:00
parent 23e4005c55
commit 4941a3e32e
3 changed files with 8 additions and 5 deletions

View file

@ -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