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
- Use mock.patch.object() instead of string-based mock.patch()
- Add cache_clear() call before mocking load_library
- Fixes AttributeError in TestLibraryIntegration tests
The string-based mock.patch() path resolution changed in Python 3.11+
(using pkgutil.resolve_name()), which can fail to find attributes that
were imported into a module from elsewhere.
See: python/cpython#117860
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments