From 020890b922f3a5c218645e6f30c4306a1560039d Mon Sep 17 00:00:00 2001 From: A_A <21040751+Otto-AA@users.noreply.github.com> Date: Sat, 9 May 2026 14:25:58 +0200 Subject: [PATCH] fix: ignore sockets and other non-file files --- src/mutmut/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mutmut/__main__.py b/src/mutmut/__main__.py index fb6dfc4c..748e85fb 100644 --- a/src/mutmut/__main__.py +++ b/src/mutmut/__main__.py @@ -146,7 +146,9 @@ def walk_all_files() -> Iterator[tuple[str, str]]: continue for root, dirs, files in walk(path): for filename in files: - yield root, filename + # only yield actual files, no sockets/pipes/etc. + if isfile(Path(root) / filename): + yield root, filename def walk_source_files() -> Iterator[Path]: