Skip to content

test(sdkharness): leaf-check unit tests skip __pycache__ - #622

Merged
sophiecarreras merged 1 commit into
masterfrom
sdkharness-leaves-skip-pycache
Oct 2, 2026
Merged

sophiecarreras merged 1 commit into
masterfrom
sdkharness-leaves-skip-pycache

Conversation

@sophiecarreras

Copy link
Copy Markdown
Contributor

The leaf-check tests in test_sdkharness_conformance_resilience_contract.py listed every entry under .sdkharness/tests/{conformance,resilience}. test_sdkharness_lock_refusal.py loads leaves with SourceFileLoader, which writes bytecode to conformance/__pycache__. On a second run in the same checkout (as the harness does), the directory entry was treated as a leaf and three tests failed with IsADirectoryError / empty output.

Now only regular files not starting with __ or . are leaves, plus a regression test.

🤖 Generated with Claude Code

…n-leaf entries

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sophiecarreras sophiecarreras self-assigned this Oct 2, 2026
@sophiecarreras
sophiecarreras merged commit 408b698 into master Oct 2, 2026
26 of 28 checks passed
@sophiecarreras
sophiecarreras deleted the sdkharness-leaves-skip-pycache branch October 2, 2026 23:10
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