Skip to content

fix: CI test failures — missing shutil import + Windows os.geteuid guard#380

Merged
buildingjoshbetter merged 1 commit into
mainfrom
fix/ci-test-failures
May 22, 2026
Merged

fix: CI test failures — missing shutil import + Windows os.geteuid guard#380
buildingjoshbetter merged 1 commit into
mainfrom
fix/ci-test-failures

Conversation

@buildingjoshbetter
Copy link
Copy Markdown
Owner

Summary

Fixes 6/10 failing CI checks:

  1. test_cli_help.py: Missing import shutil — broke all platforms
  2. test_robustness_fixes.py: os.geteuid() called at import time — crashed Windows

Root cause

The shutil import was removed in PR #373 (CLI helper simplification) but two tests still used shutil.which() in @pytest.mark.skipif decorators.

1. test_cli_help.py: Add missing `import shutil` (used by shutil.which
   in skipif decorators). Broke all 6 CI platforms.
2. test_robustness_fixes.py: Guard os.geteuid() with hasattr check
   (POSIX-only, crashes on Windows).
@buildingjoshbetter buildingjoshbetter merged commit bc6be17 into main May 22, 2026
6 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant