You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Windows test compatibility with proper cross-platform temp path assertion
Fix the final Windows test failure in test_get_result_success by using
proper cross-platform temporary directory detection.
Issue: Windows temp paths like 'C:\Users\RUNNER~1\AppData\Local\Temp\tmpmv3bwcx3'
don't match Unix-style patterns like endswith('tmp') or contain '/tmp'.
Solution: Use tempfile.gettempdir() to get the actual system temp directory
and verify the path starts with that directory, making the test truly
cross-platform compatible.
Before:
assert call_args[1].endswith("tmp") or "/tmp" in call_args[1]
After:
temp_dir = tempfile.gettempdir()
assert call_args[1].startswith(temp_dir)
This ensures 120/120 tests pass on ALL platforms: Linux, macOS, Windows.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments