Skip to content

Local AI BGM and sound effects for Claude Code and any MCP client. Stable Audio 3 on Apple Silicon (MLX) and Windows NVIDIA GPUs (PyTorch). No cloud, no API key.

Tests: no POSIX file mode check on Windows (GAME-240)

Kanadd658264dc4a
diff --git a/tests/test_server.py b/tests/test_server.py
index 738668a..da0bce4 100644
--- a/tests/test_server.py
+++ b/tests/test_server.py
@@ -1,5 +1,6 @@
"""Tool-level tests through an in-process MCP client, with a fake backend."""
import json
+import os
import shutil
from pathlib import Path
@@ -251,11 +252,11 @@ def test_cut_names_keep_their_tail(fake):
assert q.stem.endswith("_v2_proc") and len(q.stem.encode()) <= server.MAX_STEM_BYTES
stem, tail = server._auto_stem(None, "冷たい" * 40, 6)
assert server._out_path(stem, tail=tail).stem.endswith("_6")
- assert oct(p.stat().st_mode & 0o777) == oct(0o644 & ~_umask())
+ if os.name != "nt": # Windows has no POSIX permission bits
+ assert oct(p.stat().st_mode & 0o777) == oct(0o644 & ~_umask())
def _umask() -> int:
- import os
m = os.umask(0)
os.umask(m)
return m