Skip to content

fix(#5378): use path.parts for cross-platform config path assertion#1

Open
weilixiong wants to merge 1 commit into
mainfrom
fix/5378-test-config-paths
Open

fix(#5378): use path.parts for cross-platform config path assertion#1
weilixiong wants to merge 1 commit into
mainfrom
fix/5378-test-config-paths

Conversation

@weilixiong
Copy link
Copy Markdown
Owner

@weilixiong weilixiong commented May 16, 2026

Summary

Replaces str(path).endswith(".clawrtc/config.json") with path.parts[-2:] == (".clawrtc", "config.json") so the assertion works cross-platform (Windows uses backslash path separators).

Testing

All 25 tests in miners/clawrtc/test_config.py pass.

Related

…ertion

Replace str.endswith('.clawrtc/config.json') with path.parts[-2:] tuple
comparison so the assertion works on Windows and other platforms
where path separators differ.
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.

clawrtc config path test assumes Unix separators on Windows

1 participant