diff --git a/tests/test_fileio.py b/tests/test_fileio.py index 9e6b2a83..c4801187 100644 --- a/tests/test_fileio.py +++ b/tests/test_fileio.py @@ -218,7 +218,7 @@ async def test_is_block_device(self) -> None: assert not await Path("/btelkbee").is_block_device() with os.scandir("/dev") as iterator: for entry in iterator: - if stat.S_ISBLK(entry.stat().st_mode): + if stat.S_ISBLK(entry.stat(follow_symlinks=False).st_mode): assert await Path(entry.path).is_block_device() break else: