Remove unused noqas (#135583)
This commit is contained in:
committed by
GitHub
parent
f57640c2cd
commit
8a35261fd8
@@ -261,7 +261,7 @@ async def test_protect_path_read_bytes(caplog: pytest.LogCaptureFixture) -> None
|
||||
block_async_io.enable()
|
||||
with (
|
||||
contextlib.suppress(FileNotFoundError),
|
||||
Path("/config/data_not_exist").read_bytes(), # noqa: ASYNC230
|
||||
Path("/config/data_not_exist").read_bytes(),
|
||||
):
|
||||
pass
|
||||
|
||||
@@ -274,7 +274,7 @@ async def test_protect_path_read_text(caplog: pytest.LogCaptureFixture) -> None:
|
||||
block_async_io.enable()
|
||||
with (
|
||||
contextlib.suppress(FileNotFoundError),
|
||||
Path("/config/data_not_exist").read_text(encoding="utf8"), # noqa: ASYNC230
|
||||
Path("/config/data_not_exist").read_text(encoding="utf8"),
|
||||
):
|
||||
pass
|
||||
|
||||
@@ -287,7 +287,7 @@ async def test_protect_path_write_bytes(caplog: pytest.LogCaptureFixture) -> Non
|
||||
block_async_io.enable()
|
||||
with (
|
||||
contextlib.suppress(FileNotFoundError),
|
||||
Path("/config/data/not/exist").write_bytes(b"xxx"), # noqa: ASYNC230
|
||||
Path("/config/data/not/exist").write_bytes(b"xxx"),
|
||||
):
|
||||
pass
|
||||
|
||||
@@ -300,7 +300,7 @@ async def test_protect_path_write_text(caplog: pytest.LogCaptureFixture) -> None
|
||||
block_async_io.enable()
|
||||
with (
|
||||
contextlib.suppress(FileNotFoundError),
|
||||
Path("/config/data/not/exist").write_text("xxx", encoding="utf8"), # noqa: ASYNC230
|
||||
Path("/config/data/not/exist").write_text("xxx", encoding="utf8"),
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user